Skip to content

Commit

Permalink
Remove redundant casts
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Jan 5, 2025
1 parent a010fc7 commit 97819df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion far/vc_crt_fix_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ extern "C" void WINAPI WRAPPER(InitializeSRWLock)(PSRWLOCK SRWLock)
{
static void WINAPI impl(PSRWLOCK SRWLock)
{
*(void**)SRWLock = 0;
*SRWLock = SRWLOCK_INIT;
}
};

Expand Down
2 changes: 1 addition & 1 deletion plugins/common/vc_crt_fix_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ extern "C" void WINAPI WRAPPER(InitializeSRWLock)(PSRWLOCK SRWLock)
{
static void WINAPI impl(PSRWLOCK SRWLock)
{
*(void**)SRWLock = 0;
*SRWLock = SRWLOCK_INIT;
}
};

Expand Down

0 comments on commit 97819df

Please sign in to comment.