Skip to content

Commit

Permalink
fix for last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Dec 28, 2024
1 parent f43c9a3 commit 8ff2b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/genproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ int genproxy_exports(int argc, char** argv)
fprintf(ofh, "static NOINLINE void exports_init_once()\n");
fprintf(ofh, "{\n");
fprintf(ofh, " BOOL pending;\n");
fprintf(ofh, " if (InitOnceBeginInitialize(&g_exports_init_once, 0, &pending, 0) && pending)\n");
fprintf(ofh, " if (InitOnceBeginInitialize(&g_exports_init_once, 0, &pending, NULL) && pending)\n");
fprintf(ofh, " {\n");
fprintf(ofh, " exports_init();\n");
fprintf(ofh, " InitOnceComplete(&g_exports_init_once, 0, 0);\n");
fprintf(ofh, " InitOnceComplete(&g_exports_init_once, 0, NULL);\n");
fprintf(ofh, " }\n");
fprintf(ofh, "}\n");
fprintf(ofh, "\n");
Expand Down

0 comments on commit 8ff2b1c

Please sign in to comment.