Skip to content

Commit bcbd211

Browse files
author
bodong
committed
bugfix.
1 parent 4c47bde commit bcbd211

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Sources/AHeadLib.Net/Properties/Templates/DllMain.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ BOOL WINAPI DllMain(
1919
switch (fdwReason)
2020
{
2121
case DLL_PROCESS_ATTACH:
22+
// Initialize once for each new process.
23+
// Return FALSE to fail DLL load.
24+
__CheckedLoad();
25+
2226
if (__CheckShouldExecuteAttachCode() > 0)
2327
{
24-
// Initialize once for each new process.
25-
// Return FALSE to fail DLL load.
26-
__CheckedLoad();
27-
2828
// apply internal patches
2929
__ApplyBuiltinPatches();
3030

Sources/Tests/winmm/GeneratedFiles/winmm_DllMain.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ BOOL WINAPI DllMain(
1919
switch (fdwReason)
2020
{
2121
case DLL_PROCESS_ATTACH:
22+
// Initialize once for each new process.
23+
// Return FALSE to fail DLL load.
24+
__CheckedLoad();
25+
2226
if (__CheckShouldExecuteAttachCode() > 0)
2327
{
24-
// Initialize once for each new process.
25-
// Return FALSE to fail DLL load.
26-
__CheckedLoad();
27-
2828
// apply internal patches
2929
__ApplyBuiltinPatches();
3030

0 commit comments

Comments
 (0)