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
447fda52
Commit
447fda52
authored
May 16, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implemented LdrAddRefDll.
parent
b64530ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
loader.c
dlls/ntdll/loader.c
+24
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/loader.c
View file @
447fda52
...
...
@@ -1821,6 +1821,30 @@ NTSTATUS WINAPI LdrGetDllHandle( LPCWSTR load_path, ULONG flags, const UNICODE_S
/******************************************************************
* LdrAddRefDll (NTDLL.@)
*/
NTSTATUS
WINAPI
LdrAddRefDll
(
ULONG
flags
,
HMODULE
module
)
{
NTSTATUS
ret
=
STATUS_SUCCESS
;
WINE_MODREF
*
wm
;
if
(
flags
)
FIXME
(
"%p flags %x not implemented
\n
"
,
module
,
flags
);
RtlEnterCriticalSection
(
&
loader_section
);
if
((
wm
=
get_modref
(
module
)))
{
if
(
wm
->
ldr
.
LoadCount
!=
-
1
)
wm
->
ldr
.
LoadCount
++
;
TRACE
(
"(%s) ldr.LoadCount: %d
\n
"
,
debugstr_w
(
wm
->
ldr
.
BaseDllName
.
Buffer
),
wm
->
ldr
.
LoadCount
);
}
else
ret
=
STATUS_INVALID_PARAMETER
;
RtlLeaveCriticalSection
(
&
loader_section
);
return
ret
;
}
/******************************************************************
* LdrQueryProcessModuleInformation
*
*/
...
...
dlls/ntdll/ntdll.spec
View file @
447fda52
...
...
@@ -50,7 +50,7 @@
@ stub KiUserExceptionDispatcher
# @ stub LdrAccessOutOfProcessResource
@ stdcall LdrAccessResource(long ptr ptr ptr)
# @ stub LdrAddRefDll
@ stdcall LdrAddRefDll(long ptr)
# @ stub LdrAlternateResourcesEnabled
# @ stub LdrCreateOutOfProcessImage
# @ stub LdrDestroyOutOfProcessImage
...
...
include/winternl.h
View file @
447fda52
...
...
@@ -1731,6 +1731,7 @@ NTSTATUS WINAPIV DbgPrint(LPCSTR fmt, ...);
NTSTATUS
WINAPIV
DbgPrintEx
(
ULONG
iComponentId
,
ULONG
Level
,
LPCSTR
fmt
,
...);
NTSTATUS
WINAPI
LdrAccessResource
(
HMODULE
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
,
void
**
,
PULONG
);
NTSTATUS
WINAPI
LdrAddRefDll
(
ULONG
,
HMODULE
);
NTSTATUS
WINAPI
LdrFindResourceDirectory_U
(
HMODULE
,
const
LDR_RESOURCE_INFO
*
,
ULONG
,
const
IMAGE_RESOURCE_DIRECTORY
**
);
NTSTATUS
WINAPI
LdrFindResource_U
(
HMODULE
,
const
LDR_RESOURCE_INFO
*
,
ULONG
,
const
IMAGE_RESOURCE_DATA_ENTRY
**
);
NTSTATUS
WINAPI
LdrGetDllHandle
(
LPCWSTR
,
ULONG
,
const
UNICODE_STRING
*
,
HMODULE
*
);
...
...
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