kernel32/tests: Skip some resource tests on Win7.
This commit is contained in:
parent
bc6f37ac00
commit
63d77d07dc
@ -125,6 +125,8 @@ static void update_empty_exe( void )
|
|||||||
CloseHandle( file );
|
CloseHandle( file );
|
||||||
|
|
||||||
res = BeginUpdateResource( filename, TRUE );
|
res = BeginUpdateResource( filename, TRUE );
|
||||||
|
if ( res != NULL || GetLastError() != ERROR_FILE_INVALID )
|
||||||
|
{
|
||||||
ok( res != NULL, "BeginUpdateResource failed\n");
|
ok( res != NULL, "BeginUpdateResource failed\n");
|
||||||
|
|
||||||
/* check if it's possible to open the file now */
|
/* check if it's possible to open the file now */
|
||||||
@ -135,6 +137,9 @@ static void update_empty_exe( void )
|
|||||||
|
|
||||||
r = EndUpdateResource( res, FALSE );
|
r = EndUpdateResource( res, FALSE );
|
||||||
ok( r == FALSE, "EndUpdateResource failed\n");
|
ok( r == FALSE, "EndUpdateResource failed\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
skip( "Can't update resource in empty file\n" );
|
||||||
|
|
||||||
res = BeginUpdateResource( filename, FALSE );
|
res = BeginUpdateResource( filename, FALSE );
|
||||||
ok( res == NULL, "BeginUpdateResource failed\n");
|
ok( res == NULL, "BeginUpdateResource failed\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user