Skip to content

Commit 10a7ff5

Browse files
committed
Fix util_init_once on windows
remove unnecessary &
1 parent 78334c5 commit 10a7ff5

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)