We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a0919 commit 09dc91dCopy full SHA for 09dc91d
src/libumf_windows.c
@@ -33,14 +33,16 @@ void libumfInit(void) {
33
34
INIT_ONCE init_once_flag = INIT_ONCE_STATIC_INIT;
35
36
+static void umfTearDownWrapper(void) { (void)umfTearDown(); }
37
+
38
BOOL CALLBACK initOnceCb(PINIT_ONCE InitOnce, PVOID Parameter,
39
PVOID *lpContext) {
40
(void)InitOnce; // unused
41
(void)Parameter; // unused
42
(void)lpContext; // unused
43
44
umf_result_t ret = umfInit();
- atexit(umfTearDown);
45
+ atexit(umfTearDownWrapper);
46
return (ret == UMF_RESULT_SUCCESS) ? TRUE : FALSE;
47
}
48
0 commit comments