Skip to content

Commit

Permalink
Fix DLL entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed May 11, 2019
1 parent 00f4f2a commit 8d930c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msvcrt_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ extern int __ref_oldnames;

#if _APPTYPE == __UNKNOWN_APP

extern BOOL WINAPI DllMain (HINSTANCE, DWORD, LPVOID);

BOOL WINAPI
DllMainCRTStartup (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
_DllMainCRTStartup (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
{
BOOL bRet;
__ref_oldnames = 0; // drag in alternate definitions

if (dwReason == DLL_PROCESS_ATTACH)
{
Expand Down

0 comments on commit 8d930c1

Please sign in to comment.