Commit 1336f596 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

kernelbase/tests: Close mapping in MapViewOfFile3 test.

parent 4e5eaba5
......@@ -96,6 +96,7 @@ static void test_MapViewOfFile3(void)
static const char testfile[] = "testfile.xxx";
HANDLE file, mapping;
void *ptr;
BOOL ret;
if (!pMapViewOfFile3)
{
......@@ -118,8 +119,10 @@ static void test_MapViewOfFile3(void)
ok( ptr != NULL, "MapViewOfFile FILE_MAP_READ error %lu\n", GetLastError() );
UnmapViewOfFile( ptr );
CloseHandle( mapping );
CloseHandle( file );
DeleteFileA( testfile );
ret = DeleteFileA( testfile );
ok(ret, "Failed to delete a test file.\n");
}
START_TEST(process)
......
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