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
2a929517
Commit
2a929517
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 IoAcquireRemoveLockEx().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
afe444f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+0
-13
sync.c
dlls/ntoskrnl.exe/sync.c
+15
-0
wdm.h
include/ddk/wdm.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
2a929517
...
...
@@ -3051,19 +3051,6 @@ BOOLEAN WINAPI IoSetThreadHardErrorMode(BOOLEAN EnableHardErrors)
}
/*****************************************************
* IoAcquireRemoveLockEx (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
IoAcquireRemoveLockEx
(
PIO_REMOVE_LOCK
lock
,
PVOID
tag
,
LPCSTR
file
,
ULONG
line
,
ULONG
lock_size
)
{
FIXME
(
"(%p, %p, %s, %u, %u): stub
\n
"
,
lock
,
tag
,
debugstr_a
(
file
),
line
,
lock_size
);
return
STATUS_NOT_IMPLEMENTED
;
}
/*****************************************************
* DllMain
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserved
)
...
...
dlls/ntoskrnl.exe/sync.c
View file @
2a929517
...
...
@@ -1209,3 +1209,18 @@ void WINAPI IoInitializeRemoveLockEx( IO_REMOVE_LOCK *lock, ULONG tag,
lock
->
Common
.
Removed
=
FALSE
;
lock
->
Common
.
IoCount
=
0
;
}
/***********************************************************************
* IoAcquireRemoveLockEx (NTOSKRNL.EXE.@)
*/
NTSTATUS
WINAPI
IoAcquireRemoveLockEx
(
IO_REMOVE_LOCK
*
lock
,
void
*
tag
,
const
char
*
file
,
ULONG
line
,
ULONG
size
)
{
TRACE
(
"lock %p, tag %p, file %s, line %u, size %u.
\n
"
,
lock
,
tag
,
debugstr_a
(
file
),
line
,
size
);
if
(
lock
->
Common
.
Removed
)
return
STATUS_DELETE_PENDING
;
InterlockedIncrement
(
&
lock
->
Common
.
IoCount
);
return
STATUS_SUCCESS
;
}
include/ddk/wdm.h
View file @
2a929517
...
...
@@ -1565,6 +1565,7 @@ void WINAPI ExReleaseResourceForThreadLite(ERESOURCE*,ERESOURCE_THREAD);
ULONG
WINAPI
ExSetTimerResolution
(
ULONG
,
BOOLEAN
);
void
WINAPI
IoAcquireCancelSpinLock
(
KIRQL
*
);
NTSTATUS
WINAPI
IoAcquireRemoveLockEx
(
IO_REMOVE_LOCK
*
,
void
*
,
const
char
*
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
IoAllocateDriverObjectExtension
(
PDRIVER_OBJECT
,
PVOID
,
ULONG
,
PVOID
*
);
PVOID
WINAPI
IoAllocateErrorLogEntry
(
PVOID
,
UCHAR
);
PIRP
WINAPI
IoAllocateIrp
(
CCHAR
,
BOOLEAN
);
...
...
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