Correct the parameter check in CreateIoCompletionPort.

svn path=/trunk/; revision=31900
This commit is contained in:
Filip Navara 2008-01-20 11:18:22 +00:00
parent 24fe77488c
commit 0fa9a1e144

View file

@ -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;