Fixed some regressions from the previous change.
This commit is contained in:
parent
65a4775b30
commit
9dc3843cba
|
@ -893,7 +893,7 @@ HANDLE WINAPI OpenWaitableTimerW( DWORD access, BOOL inherit, LPCWSTR name )
|
|||
OBJECT_ATTRIBUTES attr;
|
||||
NTSTATUS status;
|
||||
|
||||
if (!is_version_nt()) access = SEMAPHORE_ALL_ACCESS;
|
||||
if (!is_version_nt()) access = TIMER_ALL_ACCESS;
|
||||
|
||||
attr.Length = sizeof(attr);
|
||||
attr.RootDirectory = 0;
|
||||
|
|
|
@ -429,7 +429,7 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
|
|||
wine_server_release_fd( hFile, unix_handle );
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
io_status->u.Status = NtCreateEvent(&hEvent, SYNCHRONIZE, NULL, 0, 0);
|
||||
io_status->u.Status = NtCreateEvent(&hEvent, EVENT_ALL_ACCESS, NULL, 0, 0);
|
||||
if (io_status->u.Status)
|
||||
{
|
||||
wine_server_release_fd( hFile, unix_handle );
|
||||
|
@ -641,7 +641,7 @@ NTSTATUS WINAPI NtWriteFile(HANDLE hFile, HANDLE hEvent,
|
|||
wine_server_release_fd( hFile, unix_handle );
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
io_status->u.Status = NtCreateEvent(&hEvent, SYNCHRONIZE, NULL, 0, 0);
|
||||
io_status->u.Status = NtCreateEvent(&hEvent, EVENT_ALL_ACCESS, NULL, 0, 0);
|
||||
if (io_status->u.Status)
|
||||
{
|
||||
wine_server_release_fd( hFile, unix_handle );
|
||||
|
|
|
@ -117,8 +117,8 @@ void WINAPI RtlInitializeResource(LPRTL_RWLOCK rwl)
|
|||
rwl->hOwningThreadId = 0;
|
||||
rwl->dwTimeoutBoost = 0; /* no info on this one, default value is 0 */
|
||||
RtlInitializeCriticalSection( &rwl->rtlCS );
|
||||
NtCreateSemaphore( &rwl->hExclusiveReleaseSemaphore, 0, NULL, 0, 65535 );
|
||||
NtCreateSemaphore( &rwl->hSharedReleaseSemaphore, 0, NULL, 0, 65535 );
|
||||
NtCreateSemaphore( &rwl->hExclusiveReleaseSemaphore, SEMAPHORE_ALL_ACCESS, NULL, 0, 65535 );
|
||||
NtCreateSemaphore( &rwl->hSharedReleaseSemaphore, SEMAPHORE_ALL_ACCESS, NULL, 0, 65535 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue