Skip to content

Commit 8d930c1

Browse files
committed
Fix DLL entry point
1 parent 00f4f2a commit 8d930c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

msvcrt_stub.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ extern int __ref_oldnames;
3939

4040
#if _APPTYPE == __UNKNOWN_APP
4141

42+
extern BOOL WINAPI DllMain (HINSTANCE, DWORD, LPVOID);
43+
4244
BOOL WINAPI
43-
DllMainCRTStartup (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
45+
_DllMainCRTStartup (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
4446
{
4547
BOOL bRet;
48+
__ref_oldnames = 0; // drag in alternate definitions
4649

4750
if (dwReason == DLL_PROCESS_ATTACH)
4851
{

0 commit comments

Comments
 (0)