mcicda: Compare a file handle with INVALID_HANDLE_VALUE instead of NULL.
Michael Stefaniuc
mstefani at redhat.de
Fri Feb 27 16:50:31 CST 2009
---
dlls/mcicda/mcicda.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mcicda/mcicda.c b/dlls/mcicda/mcicda.c
index 79f3bae..81dc18f 100644
--- a/dlls/mcicda/mcicda.c
+++ b/dlls/mcicda/mcicda.c
@@ -463,7 +463,7 @@ static DWORD MCICDA_Open(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSW lpOpenPar
/* now, open the handle */
root[0] = root[1] = '\\'; root[2] = '.'; root[3] = '\\'; root[4] = drive; root[5] = ':'; root[6] = '\0';
wmcda->handle = CreateFileW(root, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
- if (wmcda->handle != 0)
+ if (wmcda->handle != INVALID_HANDLE_VALUE)
return 0;
the_error:
--
1.6.2.rc1
bye
michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090227/e0e273df/attachment.pgp
More information about the wine-patches
mailing list