Update RfGetFileSizeFromPathDisposeHandle.cpp

This commit is contained in:
vxunderground 2022-07-17 14:00:04 -05:00 committed by GitHub
parent 39661de600
commit 1c46d8c3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ LONGLONG RfGetFileSizeFromPathDisposeHandleW(PWCHAR Path, DWORD dwFlagsAndAttrib
{
if (hHandle)
CloseHandle(hHandle);
return LargeInteger.QuadPart;
}
@ -30,6 +31,7 @@ LONGLONG RfGetFileSizeFromPathDisposeHandleA(PCHAR Path, DWORD dwFlagsAndAttribu
{
if (hHandle)
CloseHandle(hHandle);
return LargeInteger.QuadPart;
}