Update file-win32.cc (#2066)

Fix pointer `return false` after refactoring
This commit is contained in:
depler 2021-10-31 10:15:07 +03:00 committed by GitHub
parent bbf543a43f
commit 8cac7d6f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ void* tr_sys_file_map_for_reading(tr_sys_file_t handle, uint64_t offset, uint64_
if (size > MAXSIZE_T)
{
set_system_error(error, ERROR_INVALID_PARAMETER);
return false;
return nullptr;
}
void* ret = nullptr;