summaryrefslogtreecommitdiff
path: root/src/burn/stub/stub.cpp
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2024-01-11 18:26:20 -0800
committerRob Mensching <rob@firegiant.com>2024-03-06 18:03:38 -0800
commit0d3d54992104288e9ee0c834d0b96e8502fd2d42 (patch)
tree9efa49c4983cd2ba1becab64bd1f2faccac88acf /src/burn/stub/stub.cpp
parent2824298d9dd817a47527c920363556b54ead5d5d (diff)
downloadwix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.tar.gz
wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.tar.bz2
wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.zip
Move the BootstrapperApplication out of proc
Diffstat (limited to 'src/burn/stub/stub.cpp')
-rw-r--r--src/burn/stub/stub.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/burn/stub/stub.cpp b/src/burn/stub/stub.cpp
index 9c9dfeef..d8cee9f1 100644
--- a/src/burn/stub/stub.cpp
+++ b/src/burn/stub/stub.cpp
@@ -41,20 +41,7 @@ int WINAPI wWinMain(
41 hEngineFile = ::CreateFileW(sczPath, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); 41 hEngineFile = ::CreateFileW(sczPath, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
42 } 42 }
43 43
44 // If the engine is in the clean room, we'll do the unsafe initialization 44 AppInitialize(rgsczSafelyLoadSystemDlls, countof(rgsczSafelyLoadSystemDlls));
45 // because some systems in Windows (namely GDI+) will fail when run in
46 // a process that protects against DLL hijacking. Since we know the clean
47 // room is in a clean folder and not subject to DLL hijacking we won't
48 // make ourselves perfectly secure so that we can load BAs that still
49 // depend on those parts of Windows that are insecure to DLL hijacking.
50 if (EngineInCleanRoom(lpCmdLine))
51 {
52 AppInitializeUnsafe();
53 }
54 else
55 {
56 AppInitialize(rgsczSafelyLoadSystemDlls, countof(rgsczSafelyLoadSystemDlls));
57 }
58 45
59 AvoidLocalDllRedirection(sczPath); 46 AvoidLocalDllRedirection(sczPath);
60 47