krnl386.exe: Pass SYNCHRONIZE flag to NtCreateFile.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8294722142
commit
413ad29ef9
|
@ -872,7 +872,7 @@ static HANDLE INT21_CreateMagicDeviceHandle( LPCWSTR name )
|
|||
attr.SecurityDescriptor = NULL;
|
||||
attr.SecurityQualityOfService = NULL;
|
||||
|
||||
status = NtCreateFile( &ret, GENERIC_READ|GENERIC_WRITE, &attr, &io, NULL, 0,
|
||||
status = NtCreateFile( &ret, GENERIC_READ|GENERIC_WRITE|SYNCHRONIZE, &attr, &io, NULL, 0,
|
||||
FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN_IF,
|
||||
FILE_SYNCHRONOUS_IO_ALERT, NULL, 0 );
|
||||
if (status)
|
||||
|
|
|
@ -143,7 +143,7 @@ static HANDLE open_vxd_handle( LPCWSTR name )
|
|||
attr.SecurityDescriptor = NULL;
|
||||
attr.SecurityQualityOfService = NULL;
|
||||
|
||||
status = NtCreateFile( &ret, 0, &attr, &io, NULL, 0,
|
||||
status = NtCreateFile( &ret, SYNCHRONIZE, &attr, &io, NULL, 0,
|
||||
FILE_SHARE_READ|FILE_SHARE_WRITE, FILE_OPEN_IF,
|
||||
FILE_SYNCHRONOUS_IO_ALERT, NULL, 0 );
|
||||
if (status)
|
||||
|
|
Loading…
Reference in New Issue