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
e98933a2
Commit
e98933a2
authored
Jun 22, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use module for path to activation context.
parent
173cd38e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
actctx.c
dlls/ntdll/actctx.c
+5
-2
No files found.
dlls/ntdll/actctx.c
View file @
e98933a2
...
...
@@ -2210,9 +2210,12 @@ NTSTATUS WINAPI RtlCreateActivationContext( HANDLE *handle, const void *ptr )
{
UNICODE_STRING
dir
;
WCHAR
*
p
;
HMODULE
module
;
if
((
status
=
get_module_filename
(
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
,
&
dir
,
0
)))
goto
error
;
if
(
pActCtx
->
dwFlags
&
ACTCTX_FLAG_HMODULE_VALID
)
module
=
pActCtx
->
hModule
;
else
module
=
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
;
if
((
status
=
get_module_filename
(
module
,
&
dir
,
0
)))
goto
error
;
if
((
p
=
strrchrW
(
dir
.
Buffer
,
'\\'
)))
p
[
1
]
=
0
;
actctx
->
appdir
.
info
=
dir
.
Buffer
;
}
...
...
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