Skip to content

Commit

Permalink
Fix build error for x86 target
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Oct 10, 2022
1 parent ab864c8 commit 8d3e290
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WinIMergeLib/WinIMergeLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID)
if (dwReason == DLL_PROCESS_ATTACH)
{
FreeImage_Initialise();
#ifdef _WIN64
InitializeCriticalSection(&Win78Libraries::CriticalSection);
#endif
return TRUE;
}
else if (dwReason == DLL_PROCESS_DETACH)
Expand Down

0 comments on commit 8d3e290

Please sign in to comment.