Just load the library

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7293 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-08-17 18:30:33 +00:00
parent 0be4164270
commit 1768555f2b
3 changed files with 5 additions and 5 deletions

View file

@ -87,7 +87,7 @@ static void LoadToolBarImages()
HWND hTB = g_toolbar.hwnd;
// Comctl32.dll version detection
#ifndef _WIN64
HMODULE hMod = GetModuleHandle(_T("comctl32.dll"));
HMODULE hMod = LoadSysLibrary("COMCTL32");
const FARPROC hasCC4_70 = (SupportsW95()) ? GetProcAddress(hMod, "InitCommonControlsEx") : (FARPROC) TRUE; // NT4 shipped with v4.70
const FARPROC hasCC4_71 = (SupportsWNT4() || SupportsW95()) ? GetProcAddress(hMod, "DllGetVersion") : (FARPROC) TRUE; // IE4 shipped with v4.71
#else