mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,file] fix wrong status code
This commit is contained in:
@@ -355,7 +355,7 @@ static BOOL FileFlushFileBuffers(HANDLE hFile)
|
||||
// See: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-flushfilebuffers
|
||||
if ((pFile->dwOpenMode & GENERIC_WRITE) == 0)
|
||||
{
|
||||
SetLastError(STATUS_ACCESS_DENIED);
|
||||
SetLastError(ERROR_ACCESS_DENIED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user