Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9d899c75
Commit
9d899c75
authored
Aug 19, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement IoReleaseRemoveLockEx().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2a929517
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
sync.c
dlls/ntoskrnl.exe/sync.c
+15
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
9d899c75
...
...
@@ -448,7 +448,7 @@
@ stdcall IoRegisterShutdownNotification(ptr)
@ stdcall IoReleaseCancelSpinLock(long)
@ stdcall IoReleaseRemoveLockAndWaitEx(ptr ptr long)
@ st
ub IoReleaseRemoveLockEx
@ st
dcall IoReleaseRemoveLockEx(ptr ptr long)
@ stub IoReleaseVpbSpinLock
@ stub IoRemoveShareAccess
@ stub IoReportDetectedDevice
...
...
dlls/ntoskrnl.exe/sync.c
View file @
9d899c75
...
...
@@ -1224,3 +1224,18 @@ NTSTATUS WINAPI IoAcquireRemoveLockEx( IO_REMOVE_LOCK *lock, void *tag,
InterlockedIncrement
(
&
lock
->
Common
.
IoCount
);
return
STATUS_SUCCESS
;
}
/***********************************************************************
* IoReleaseRemoveLockEx (NTOSKRNL.EXE.@)
*/
void
WINAPI
IoReleaseRemoveLockEx
(
IO_REMOVE_LOCK
*
lock
,
void
*
tag
,
ULONG
size
)
{
LONG
count
;
TRACE
(
"lock %p, tag %p, size %u.
\n
"
,
lock
,
tag
,
size
);
if
(
!
(
count
=
InterlockedDecrement
(
&
lock
->
Common
.
IoCount
)))
KeSetEvent
(
&
lock
->
Common
.
RemoveEvent
,
IO_NO_INCREMENT
,
FALSE
);
else
if
(
count
<
0
)
ERR
(
"Lock %p is not acquired!
\n
"
,
lock
);
}
include/ddk/wdm.h
View file @
9d899c75
...
...
@@ -1603,6 +1603,7 @@ void WINAPI IoInvalidateDeviceRelations(PDEVICE_OBJECT,DEVICE_RELATION_TYPE
void
WINAPI
IoQueueWorkItem
(
PIO_WORKITEM
,
PIO_WORKITEM_ROUTINE
,
WORK_QUEUE_TYPE
,
void
*
);
NTSTATUS
WINAPI
IoRegisterDeviceInterface
(
PDEVICE_OBJECT
,
const
GUID
*
,
PUNICODE_STRING
,
PUNICODE_STRING
);
void
WINAPI
IoReleaseCancelSpinLock
(
KIRQL
);
void
WINAPI
IoReleaseRemoveLockEx
(
IO_REMOVE_LOCK
*
,
void
*
,
ULONG
);
NTSTATUS
WINAPI
IoSetDeviceInterfaceState
(
UNICODE_STRING
*
,
BOOLEAN
);
NTSTATUS
WINAPI
IoWMIRegistrationControl
(
PDEVICE_OBJECT
,
ULONG
);
...
...
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