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
125e710f
Commit
125e710f
authored
Jul 19, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Store the windows directory too.
parent
63e4b943
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
loader.c
dlls/ntdll/loader.c
+2
-0
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
No files found.
dlls/ntdll/loader.c
View file @
125e710f
...
...
@@ -91,6 +91,7 @@ static UINT tls_module_count; /* number of modules with TLS directory */
static
UINT
tls_total_size
;
/* total size of TLS storage */
static
const
IMAGE_TLS_DIRECTORY
**
tls_dirs
;
/* array of TLS directories */
UNICODE_STRING
windows_dir
=
{
0
,
0
,
NULL
};
/* windows directory */
UNICODE_STRING
system_dir
=
{
0
,
0
,
NULL
};
/* system directory */
static
RTL_CRITICAL_SECTION
loader_section
;
...
...
@@ -2312,6 +2313,7 @@ void __wine_init_windows_dir( const WCHAR *windir, const WCHAR *sysdir )
PLIST_ENTRY
mark
,
entry
;
LPWSTR
buffer
,
p
;
RtlCreateUnicodeString
(
&
windows_dir
,
windir
);
RtlCreateUnicodeString
(
&
system_dir
,
sysdir
);
strcpyW
(
user_shared_data
->
NtSystemRoot
,
windir
);
...
...
dlls/ntdll/ntdll_misc.h
View file @
125e710f
...
...
@@ -76,6 +76,7 @@ extern FARPROC SNOOP_GetProcAddress( HMODULE hmod, const IMAGE_EXPORT_DIRECTORY
FARPROC
origfun
,
DWORD
ordinal
,
const
WCHAR
*
user
);
extern
void
RELAY_SetupDLL
(
HMODULE
hmod
);
extern
void
SNOOP_SetupDLL
(
HMODULE
hmod
);
extern
UNICODE_STRING
windows_dir
;
extern
UNICODE_STRING
system_dir
;
/* redefine these to make sure we don't reference kernel symbols */
...
...
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