Michael Stefaniuc : winedos:
Check a file handle against INVALID_HANDLE_VALUE, not 0.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 9 07:28:27 CST 2007
Module: wine
Branch: master
Commit: 9a5c5178c2f59d0f03a9ea90be5698ffd76fbd7a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a5c5178c2f59d0f03a9ea90be5698ffd76fbd7a
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Mar 8 23:21:07 2007 +0100
winedos: Check a file handle against INVALID_HANDLE_VALUE, not 0.
---
dlls/winedos/int2f.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winedos/int2f.c b/dlls/winedos/int2f.c
index dcb19c4..7bbf5e4 100644
--- a/dlls/winedos/int2f.c
+++ b/dlls/winedos/int2f.c
@@ -564,7 +564,7 @@ static void MSCDEX_Request(BYTE *driver_request, BOOL dorealmode)
PTR_AT(driver_request, 3, WORD) = 0;
devName[4] = 'A' + CDROM_GetHeap()->hdr.drive + driver_request[1];
h = CreateFileA(devName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
- if (!h) {
+ if (h == INVALID_HANDLE_VALUE) {
WARN("Couldn't open cdrom handle\n");
driver_request[4] |= 0x80;
driver_request[3] = 1; /* unknown unit */
More information about the wine-cvs
mailing list