Michael Stefaniuc : mapi32/tests: Test the correct return code (PVS-Studio ).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 22 16:20:52 CST 2014


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Dec 22 11:25:07 2014 +0100

mapi32/tests: Test the correct return code (PVS-Studio).

---

 dlls/mapi32/tests/prop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mapi32/tests/prop.c b/dlls/mapi32/tests/prop.c
index a26f003..4e09931 100644
--- a/dlls/mapi32/tests/prop.c
+++ b/dlls/mapi32/tests/prop.c
@@ -1232,7 +1232,7 @@ static void test_IProp(void)
 
     /* GetLastError - No errors set */
     lpError = NULL;
-    IPropData_GetLastError(lpIProp, E_INVALIDARG, 0, &lpError);
+    sc = IPropData_GetLastError(lpIProp, E_INVALIDARG, 0, &lpError);
     ok(sc == S_OK && !lpError,
        "GetLastError: Expected S_OK, null, got 0x%08X,%p\n", sc, lpError);
 




More information about the wine-cvs mailing list