wtsapi32: Remove useless info free (Coverity).

This commit is contained in:
Marcus Meissner 2014-03-08 10:15:41 +01:00 committed by Alexandre Julliard
parent 0d00e16327
commit a2894d4e41

View File

@ -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);