Michael Stefaniuc : quartz: Compare a file handle to INVALID_HANDLE_VALUE and not NULL.
Alexandre Julliard
julliard at winehq.org
Thu Jul 10 08:58:23 CDT 2008
Module: wine
Branch: master
Commit: 310b58994cae46289b0b685b276814d68fecec98
URL: http://source.winehq.org/git/wine.git/?a=commit;h=310b58994cae46289b0b685b276814d68fecec98
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jul 9 23:54:28 2008 +0200
quartz: Compare a file handle to INVALID_HANDLE_VALUE and not NULL.
---
dlls/quartz/tests/avisplitter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/tests/avisplitter.c b/dlls/quartz/tests/avisplitter.c
index 3dd1615..d3cdaac 100644
--- a/dlls/quartz/tests/avisplitter.c
+++ b/dlls/quartz/tests/avisplitter.c
@@ -203,7 +203,7 @@ static void test_threads()
file = CreateFileW(wfile, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, 0, NULL);
- if (!file)
+ if (file == INVALID_HANDLE_VALUE)
{
skip("Could not read test file \"%s\", skipping test\n", afile);
return;
More information about the wine-cvs
mailing list