kernelbase/tests: Close mapping in MapViewOfFile3 test.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52970 Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4e5eaba51f
commit
1336f5966f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue