]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/window.c
Lock down the search path for Windows DLL loading.
[PuTTY.git] / windows / window.c
index 290e6a31cf513da6803b294c61b8e58f09e69d89..115464105d8e9fea88cfc9253a2c05c5b151b5e1 100644 (file)
@@ -347,6 +347,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
     HRESULT hr;
     int guess_width, guess_height;
 
+    dll_hijacking_protection();
+
     hinst = inst;
     hwnd = NULL;
     flags = FLAG_VERBOSE | FLAG_INTERACTIVE;