This commit is contained in:
Igor Pavlov
2016-10-05 00:00:00 +00:00
committed by Kornel Lesiński
parent 232ce79574
commit 603abd5528
10 changed files with 55 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/* DllSecur.c -- DLL loading security
2016-09-15 : Igor Pavlov : Public domain */
2016-10-04 : Igor Pavlov : Public domain */
#include "Precomp.h"
@@ -42,7 +42,7 @@ void LoadSecurityDlls()
// at Vista (ver 6.0) : CoCreateInstance(CLSID_ShellLink, ...) doesn't work after SetDefaultDllDirectories() : Check it ???
OSVERSIONINFO vi;
vi.dwOSVersionInfoSize = sizeof(vi);
if (!GetVersionEx(&vi) || vi.dwMajorVersion != 6 || vi.dwMajorVersion != 0)
if (!GetVersionEx(&vi) || vi.dwMajorVersion != 6 || vi.dwMinorVersion != 0)
{
Func_SetDefaultDllDirectories setDllDirs = (Func_SetDefaultDllDirectories)
GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")), "SetDefaultDllDirectories");