Marcus Meissner : wtsapi32: Remove useless info free (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Mar 10 14:38:29 CDT 2014
Module: wine
Branch: master
Commit: a2894d4e4184d669f1ad76cb09d9e87e2ba10e29
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a2894d4e4184d669f1ad76cb09d9e87e2ba10e29
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Mar 8 10:15:41 2014 +0100
wtsapi32: Remove useless info free (Coverity).
---
dlls/wtsapi32/tests/wtsapi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/wtsapi32/tests/wtsapi.c b/dlls/wtsapi32/tests/wtsapi.c
index 4c2a9e9..0a5a1ed 100644
--- a/dlls/wtsapi32/tests/wtsapi.c
+++ b/dlls/wtsapi32/tests/wtsapi.c
@@ -69,13 +69,11 @@ static void test_WTSEnumerateProcessesW(void)
ok(GetLastError()== ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
if (info) WTSFreeMemory(info);
- info = NULL;
SetLastError(0xdeadbeef);
ret = WTSEnumerateProcessesW(WTS_CURRENT_SERVER_HANDLE, 0, 1, NULL, &count);
ok(!ret, "expected WTSEnumerateProcessesW to fail\n");
todo_wine
ok(GetLastError()== ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER got: %d\n", GetLastError());
- if (info) WTSFreeMemory(info);
info = NULL;
SetLastError(0xdeadbeef);
More information about the wine-cvs
mailing list