Commit 87e82043 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

kernel32/tests: Resource functions are not implemented on win98.

parent 4b34ba65
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "wine/test.h" #include "wine/test.h"
static const char filename[] = "test_.exe"; static const char filename[] = "test_.exe";
static DWORD GLE;
static int build_exe( void ) static int build_exe( void )
{ {
...@@ -107,7 +108,9 @@ static void update_missing_exe( void ) ...@@ -107,7 +108,9 @@ static void update_missing_exe( void )
{ {
HANDLE res; HANDLE res;
SetLastError(0xdeadbeef);
res = BeginUpdateResource( filename, TRUE ); res = BeginUpdateResource( filename, TRUE );
GLE = GetLastError();
ok( res == NULL, "BeginUpdateResource should fail\n"); ok( res == NULL, "BeginUpdateResource should fail\n");
} }
...@@ -264,6 +267,13 @@ START_TEST(resource) ...@@ -264,6 +267,13 @@ START_TEST(resource)
{ {
DeleteFile( filename ); DeleteFile( filename );
update_missing_exe(); update_missing_exe();
if (GLE == ERROR_CALL_NOT_IMPLEMENTED)
{
skip("Resource calls are not implemented\n");
return;
}
update_empty_exe(); update_empty_exe();
build_exe(); build_exe();
update_resources_none(); update_resources_none();
......
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