Marcus Meissner : msvcrt: Use = instead of == in test (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Feb 24 11:43:24 CST 2011


Module: wine
Branch: master
Commit: 706b43f4dd19616eb8a33a36a2da8ac220534255
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=706b43f4dd19616eb8a33a36a2da8ac220534255

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Feb 23 20:47:32 2011 +0100

msvcrt: Use = instead of == in test (Coverity).

---

 dlls/msvcrt/tests/misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/tests/misc.c b/dlls/msvcrt/tests/misc.c
index d93dccf..7135248 100644
--- a/dlls/msvcrt/tests/misc.c
+++ b/dlls/msvcrt/tests/misc.c
@@ -274,7 +274,7 @@ static void test__get_doserrno(void)
     errno = EBADF;
     ret = p_get_doserrno(NULL);
     ok(ret == EINVAL, "Expected _get_doserrno to return EINVAL, got %d\n", ret);
-    ok(_doserrno = ERROR_INVALID_CMM, "Expected _doserrno to be ERROR_INVALID_CMM, got %d\n", _doserrno);
+    ok(_doserrno == ERROR_INVALID_CMM, "Expected _doserrno to be ERROR_INVALID_CMM, got %d\n", _doserrno);
     ok(errno == EBADF, "Expected errno to be EBADF, got %d\n", errno);
 
     _doserrno = ERROR_INVALID_CMM;




More information about the wine-cvs mailing list