[PATCH] wtsapi32: remove useless info free (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Mar 8 03:15:41 CST 2014
info is not used in this test, so remove uses.
1191500 Logically dead code
---
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);
--
1.8.4.5
More information about the wine-patches
mailing list