Explorar o código

DLL hijacking protection

Source commit: e46306ecbcb03ab6b8cb10ee5c59758f85f0e610
Martin Prikryl %!s(int64=3) %!d(string=hai) anos
pai
achega
fca66afa3b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      source/WinSCP.cpp

+ 2 - 0
source/WinSCP.cpp

@@ -17,6 +17,8 @@ USEFORM("forms\ScpExplorer.cpp", ScpExplorerForm);
 //---------------------------------------------------------------------------
 WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
 {
+  AddStartupSequence(L"M");
+  DllHijackingProtection();
   AddStartupSequence(L"T");
   int Result = 0;
   try