From 0fa9a1e144184dfd432f3ff7bc349484b1eb289e Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 20 Jan 2008 11:18:22 +0000 Subject: [PATCH] Correct the parameter check in CreateIoCompletionPort. svn path=/trunk/; revision=31900 --- reactos/dll/win32/kernel32/file/iocompl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;