users32/tests: Win9x doesn't like FILE_ALL_ACCESS.
This commit is contained in:
parent
a85c7594dc
commit
58665f08d1
|
@ -626,7 +626,7 @@ static void test_LoadImage(void)
|
|||
icon_header->biSizeImage = 0; /* Uncompressed bitmap. */
|
||||
|
||||
/* Create the icon. */
|
||||
handle = CreateFileA("icon.ico", FILE_ALL_ACCESS, 0, NULL, CREATE_NEW,
|
||||
handle = CreateFileA("icon.ico", GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_NEW,
|
||||
FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
ok(handle != INVALID_HANDLE_VALUE, "CreateFileA failed. %u\n", GetLastError());
|
||||
ret = WriteFile(handle, icon_data, ICON_SIZE, &bytes_written, NULL);
|
||||
|
|
|
@ -561,7 +561,7 @@ static void test_listbox_LB_DIR()
|
|||
char driveletter;
|
||||
HANDLE file;
|
||||
|
||||
file = CreateFileA( "wtest1.tmp.c", FILE_ALL_ACCESS, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL );
|
||||
file = CreateFileA( "wtest1.tmp.c", GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL );
|
||||
ok(file != INVALID_HANDLE_VALUE, "Error creating the test file: %d\n", GetLastError());
|
||||
CloseHandle( file );
|
||||
|
||||
|
@ -1054,7 +1054,7 @@ static void test_listbox_dlgdir(void)
|
|||
char driveletter;
|
||||
HANDLE file;
|
||||
|
||||
file = CreateFileA( "wtest1.tmp.c", FILE_ALL_ACCESS, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL );
|
||||
file = CreateFileA( "wtest1.tmp.c", GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL );
|
||||
ok(file != INVALID_HANDLE_VALUE, "Error creating the test file: %d\n", GetLastError());
|
||||
CloseHandle( file );
|
||||
|
||||
|
|
Loading…
Reference in New Issue