Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e3223f30
Commit
e3223f30
authored
Nov 26, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement KeInitializeMutex().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4824d721
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+0
-9
sync.c
dlls/ntoskrnl.exe/sync.c
+14
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
e3223f30
...
...
@@ -2278,15 +2278,6 @@ PRKTHREAD WINAPI KeGetCurrentThread(void)
}
/***********************************************************************
* KeInitializeMutex (NTOSKRNL.EXE.@)
*/
void
WINAPI
KeInitializeMutex
(
PRKMUTEX
Mutex
,
ULONG
Level
)
{
FIXME
(
"stub: %p, %u
\n
"
,
Mutex
,
Level
);
}
/***********************************************************************
* KeWaitForMutexObject (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
KeWaitForMutexObject
(
PRKMUTEX
Mutex
,
KWAIT_REASON
WaitReason
,
KPROCESSOR_MODE
WaitMode
,
...
...
dlls/ntoskrnl.exe/sync.c
View file @
e3223f30
...
...
@@ -36,6 +36,7 @@ enum object_type
{
TYPE_MANUAL_EVENT
=
0
,
TYPE_AUTO_EVENT
=
1
,
TYPE_MUTEX
=
2
,
TYPE_SEMAPHORE
=
5
,
};
...
...
@@ -218,3 +219,16 @@ LONG WINAPI KeReleaseSemaphore( PRKSEMAPHORE semaphore, KPRIORITY increment,
return
ret
;
}
/***********************************************************************
* KeInitializeMutex (NTOSKRNL.EXE.@)
*/
void
WINAPI
KeInitializeMutex
(
PRKMUTEX
mutex
,
ULONG
level
)
{
TRACE
(
"mutex %p, level %u.
\n
"
,
mutex
,
level
);
mutex
->
Header
.
Type
=
TYPE_MUTEX
;
mutex
->
Header
.
SignalState
=
1
;
mutex
->
Header
.
WaitListHead
.
Blink
=
NULL
;
mutex
->
Header
.
WaitListHead
.
Flink
=
NULL
;
}
include/ddk/wdm.h
View file @
e3223f30
...
...
@@ -1421,6 +1421,7 @@ NTSTATUS WINAPI IoWMIRegistrationControl(PDEVICE_OBJECT,ULONG);
PKTHREAD
WINAPI
KeGetCurrentThread
(
void
);
void
WINAPI
KeInitializeEvent
(
PRKEVENT
,
EVENT_TYPE
,
BOOLEAN
);
void
WINAPI
KeInitializeMutex
(
PRKMUTEX
,
ULONG
);
void
WINAPI
KeInitializeSemaphore
(
PRKSEMAPHORE
,
LONG
,
LONG
);
void
WINAPI
KeInitializeTimerEx
(
PKTIMER
,
TIMER_TYPE
);
void
WINAPI
KeQuerySystemTime
(
LARGE_INTEGER
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment