André Hentschel : setupapi/tests: Don' t test function directly when reporting GetLastError().

Alexandre Julliard julliard at winehq.org
Mon Dec 27 10:03:58 CST 2010


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sat Dec 25 00:07:01 2010 +0100

setupapi/tests: Don't test function directly when reporting GetLastError().

---

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

diff --git a/dlls/setupapi/tests/misc.c b/dlls/setupapi/tests/misc.c
index 35b21d1..59a8d6b 100644
--- a/dlls/setupapi/tests/misc.c
+++ b/dlls/setupapi/tests/misc.c
@@ -328,7 +328,8 @@ static void test_SetupCopyOEMInf(void)
     {
         /* Win9x/WinMe */
         SetLastError(0xdeadbeef);
-        ok(DeleteFileA(dest), "Failed to delete file '%s' : %d\n", dest, GetLastError());
+        res = DeleteFileA(dest);
+        ok(res, "Failed to delete file '%s' : %d\n", dest, GetLastError());
 
         /* On WinMe we also need to remove the .pnf file */
         *(strrchr(dest, '.') + 1) = 'p';




More information about the wine-cvs mailing list