Module: wine Branch: master Commit: 58665f08d1f4d56e46f71e84ec3b898dc8f5a0ea URL: http://source.winehq.org/git/wine.git/?a=commit;h=58665f08d1f4d56e46f71e84ec...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Fri Mar 7 21:34:13 2008 +0100
users32/tests: Win9x doesn't like FILE_ALL_ACCESS.
---
dlls/user32/tests/cursoricon.c | 2 +- dlls/user32/tests/listbox.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/cursoricon.c b/dlls/user32/tests/cursoricon.c index 023a3a5..2febfbb 100644 --- a/dlls/user32/tests/cursoricon.c +++ b/dlls/user32/tests/cursoricon.c @@ -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); diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 6d0d2c8..4a9ddf4 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -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 );