diff --git a/reactos/dll/win32/kernel32/file/iocompl.c b/reactos/dll/win32/kernel32/file/iocompl.c index 2f55462fad1..87fbc9e9ef0 100644 --- a/reactos/dll/win32/kernel32/file/iocompl.c +++ b/reactos/dll/win32/kernel32/file/iocompl.c @@ -32,7 +32,7 @@ CreateIoCompletionPort( FILE_COMPLETION_INFORMATION CompletionInformation; IO_STATUS_BLOCK IoStatusBlock; - if ( ExistingCompletionPort == NULL && FileHandle == INVALID_HANDLE_VALUE ) + if ( FileHandle == INVALID_HANDLE_VALUE && ExistingCompletionPort != NULL ) { SetLastError(ERROR_INVALID_PARAMETER); return FALSE;