Skip to content

Commit c6a5e5b

Browse files
igchorldorau
authored andcommitted
Fix util_init_once on windows
remove unnecessary &
1 parent 57751ad commit c6a5e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utils_windows_concurrency.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ static BOOL CALLBACK initOnceCb(PINIT_ONCE InitOnce, PVOID Parameter,
4848
}
4949

5050
void util_init_once(UTIL_ONCE_FLAG *flag, void (*onceCb)(void)) {
51-
InitOnceExecuteOnce(flag, initOnceCb, (void *)&onceCb, NULL);
51+
InitOnceExecuteOnce(flag, initOnceCb, (void *)onceCb, NULL);
5252
}

0 commit comments

Comments
 (0)