Create, and use for all loads of system DLLs, a wrapper function
[u/mdw/putty] / windows / winstore.c
index d011dbf..6e80434 100644 (file)
@@ -497,7 +497,7 @@ static HANDLE access_random_seed(int action)
         * on older versions of Windows if we cared enough.
         * However, the invocation below requires IE5+ anyway,
         * so stuff that. */
-       shell32_module = LoadLibrary("SHELL32.DLL");
+       shell32_module = load_system32_dll("shell32.dll");
        GET_WINDOWS_FUNCTION(shell32_module, SHGetFolderPathA);
        tried_shgetfolderpath = TRUE;
     }