diff --git a/far/vc_crt_fix_impl.cpp b/far/vc_crt_fix_impl.cpp index b7e8bcdc4d..b8a294aa5c 100644 --- a/far/vc_crt_fix_impl.cpp +++ b/far/vc_crt_fix_impl.cpp @@ -419,7 +419,7 @@ extern "C" void WINAPI WRAPPER(InitializeSRWLock)(PSRWLOCK SRWLock) { static void WINAPI impl(PSRWLOCK SRWLock) { - *(void**)SRWLock = 0; + *SRWLock = SRWLOCK_INIT; } }; diff --git a/plugins/common/vc_crt_fix_impl.cpp b/plugins/common/vc_crt_fix_impl.cpp index b7e8bcdc4d..b8a294aa5c 100644 --- a/plugins/common/vc_crt_fix_impl.cpp +++ b/plugins/common/vc_crt_fix_impl.cpp @@ -419,7 +419,7 @@ extern "C" void WINAPI WRAPPER(InitializeSRWLock)(PSRWLOCK SRWLock) { static void WINAPI impl(PSRWLOCK SRWLock) { - *(void**)SRWLock = 0; + *SRWLock = SRWLOCK_INIT; } };