Skip to content

Commit 8d3e290

Browse files
committed
Fix build error for x86 target
1 parent ab864c8 commit 8d3e290

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WinIMergeLib/WinIMergeLib.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID)
6969
if (dwReason == DLL_PROCESS_ATTACH)
7070
{
7171
FreeImage_Initialise();
72+
#ifdef _WIN64
7273
InitializeCriticalSection(&Win78Libraries::CriticalSection);
74+
#endif
7375
return TRUE;
7476
}
7577
else if (dwReason == DLL_PROCESS_DETACH)

0 commit comments

Comments
 (0)