]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winpgen.c
Lock down the search path for Windows DLL loading.
[PuTTY.git] / windows / winpgen.c
index 98319608c3ca1f562b57c95fa83b9e276e9c754d..8468f805b4d7fef9d822410e5e02f979c41b61c0 100644 (file)
@@ -1519,6 +1519,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
     char **argv;
     int ret;
 
+    dll_hijacking_protection();
+
     InitCommonControls();
     hinst = inst;
     hwnd = NULL;