mirror of
https://github.com/reactos/wine.git
synced 2025-02-16 19:10:35 +00:00
kernel32/tests: Skip some resource tests on Win7.
This commit is contained in:
parent
bc6f37ac00
commit
63d77d07dc
@ -125,16 +125,21 @@ static void update_empty_exe( void )
|
||||
CloseHandle( file );
|
||||
|
||||
res = BeginUpdateResource( filename, TRUE );
|
||||
ok( res != NULL, "BeginUpdateResource failed\n");
|
||||
if ( res != NULL || GetLastError() != ERROR_FILE_INVALID )
|
||||
{
|
||||
ok( res != NULL, "BeginUpdateResource failed\n");
|
||||
|
||||
/* check if it's possible to open the file now */
|
||||
test = CreateFile(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
|
||||
ok (test != INVALID_HANDLE_VALUE, "failed to create file\n");
|
||||
/* check if it's possible to open the file now */
|
||||
test = CreateFile(filename, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, 0);
|
||||
ok (test != INVALID_HANDLE_VALUE, "failed to create file\n");
|
||||
|
||||
CloseHandle( test );
|
||||
CloseHandle( test );
|
||||
|
||||
r = EndUpdateResource( res, FALSE );
|
||||
ok( r == FALSE, "EndUpdateResource failed\n");
|
||||
r = EndUpdateResource( res, FALSE );
|
||||
ok( r == FALSE, "EndUpdateResource failed\n");
|
||||
}
|
||||
else
|
||||
skip( "Can't update resource in empty file\n" );
|
||||
|
||||
res = BeginUpdateResource( filename, FALSE );
|
||||
ok( res == NULL, "BeginUpdateResource failed\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user