mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
winspool.drv/tests: Use FILE_SHARE_READ to fix some Win9x/WinMe failures.
This commit is contained in:
parent
09dbbfc5e9
commit
716358c568
@ -2410,19 +2410,19 @@ static void test_GetPrinterDriver(void)
|
||||
trace("pConfigFile %s\n", di_2->pConfigFile);
|
||||
calculated += strlen(di_2->pConfigFile) + 1;
|
||||
|
||||
hf = CreateFileA(di_2->pDriverPath, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
hf = CreateFileA(di_2->pDriverPath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(hf != INVALID_HANDLE_VALUE)
|
||||
CloseHandle(hf);
|
||||
todo_wine
|
||||
ok(hf != INVALID_HANDLE_VALUE, "Could not open %s\n", di_2->pDriverPath);
|
||||
|
||||
hf = CreateFileA(di_2->pDataFile, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
hf = CreateFileA(di_2->pDataFile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(hf != INVALID_HANDLE_VALUE)
|
||||
CloseHandle(hf);
|
||||
todo_wine
|
||||
ok(hf != INVALID_HANDLE_VALUE, "Could not open %s\n", di_2->pDataFile);
|
||||
|
||||
hf = CreateFileA(di_2->pConfigFile, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
hf = CreateFileA(di_2->pConfigFile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if(hf != INVALID_HANDLE_VALUE)
|
||||
CloseHandle(hf);
|
||||
todo_wine
|
||||
|
Loading…
Reference in New Issue
Block a user