Commit 294adeec authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

kernel32/tests: Don't forget to delete a temporary file.

parent 9703bee5
......@@ -3843,6 +3843,7 @@ static void test_SetFileValidData(void)
{
win_skip("cannot enable SE_MANAGE_VOLUME_NAME privilege\n");
CloseHandle(token);
DeleteFileA(filename);
return;
}
handle = CreateFileA(filename, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
......@@ -3906,7 +3907,9 @@ static void test_SetFileValidData(void)
privs.Privileges[0].Attributes = 0;
AdjustTokenPrivileges(token, FALSE, &privs, sizeof(privs), NULL, NULL);
CloseHandle(token);
CloseHandle(handle);
DeleteFileA(filename);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment