Module: wine Branch: master Commit: 4362e840d0a2df85ce08d97f024e5a6ce159a48d URL: http://source.winehq.org/git/wine.git/?a=commit;h=4362e840d0a2df85ce08d97f02...
Author: Michael Stefaniuc mstefani@redhat.de Date: Fri Feb 27 23:55:31 2009 +0100
mcicda: Compare a file handle with INVALID_HANDLE_VALUE instead of NULL.
Found by Smatch.
---
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: