rufus/src/ms-sys
Pete Batard e7b66e7e4c
[mingw] use delay loading for DLLs that are subject to side loading
* This reverts much of commits f6ac559f4d and 1947266837
  so that we call the Windows APIs directly again, while ensuring that, by the time we load the DLLs,
  sideloading mitigation has already been applied by the application.
* This is a continuation of #1877, and should help prevent re-introducing side-loading issues when we
  link against new libraries, as well as allow us to drop some of the manual DLL hooking we've been
  doing to prevent it, to clean up the code.
* Note that this is a bit more complex than what the stackoverflow post suggests, because we need to
  create delayloaded libs for both 32-bit and 64-bit, which use a different calling convention and
  therefore need to use different .def files. So there's a lot of gymkhana involved, with Makefiles
  and whatnot, to get us there.
* Also simplify the use of CM_Get_DevNode_Registry_PropertyA() in dev.c since recent versions of
  MinGW now have support for it.
* Also fix 2 small issues in net.c (potential overflow) and format.c (memory leak).
2022-04-12 11:09:59 +01:00
..
inc [grub] update GRUB 2.04 core.img for Ubuntu 20.10 support 2020-09-16 13:59:06 +01:00
.editorconfig [misc] add .editorconfig 2017-03-14 18:44:14 +01:00
Makefile.am [misc] use $(srcdir) in Makefiles 2020-02-10 12:08:04 +00:00
Makefile.in [mingw] use delay loading for DLLs that are subject to side loading 2022-04-12 11:09:59 +01:00
br.c [core] improve protective MBR for GPT media 2020-02-19 19:51:32 +00:00
fat12.c [misc] separated ms-sys dependency from application 2012-01-11 00:05:16 +00:00
fat16.c [ms-sys] update ms-sys to current 2016-01-07 15:49:58 +00:00
fat32.c [misc] fix 32-bit arithmetic overflow operation warnings 2020-02-12 17:23:23 +00:00
file.c [misc] introduce hImageOption and ComboBox_GetCurItemData() to simplify code 2020-07-17 21:51:15 +01:00
ntfs.c [ntfs] fix creation of Windows 7 bootable USB from XP 2012-02-24 18:51:33 +00:00
partition_info.c [ms-sys] update ms-sys to current 2016-01-07 15:49:58 +00:00