Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dlls/ntdll/unix/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,15 @@ NTSTATUS WINAPI NtCreateSemaphore( HANDLE *handle, ACCESS_MASK access, const OBJ

*handle = 0;
if (max <= 0 || initial < 0 || initial > max) return STATUS_INVALID_PARAMETER;
if ((ret = alloc_object_attributes( attr, &objattr, &len ))) return ret;

if (do_fsync())
return fsync_create_semaphore( handle, access, attr, initial, max );

if (do_esync())
return esync_create_semaphore( handle, access, attr, initial, max );

if ((ret = alloc_object_attributes( attr, &objattr, &len ))) return ret;

SERVER_START_REQ( create_semaphore )
{
req->access = access;
Expand Down