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
4e772228
Commit
4e772228
authored
Oct 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Move the window and system dir variables to directory.c
parent
c9689897
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
directory.c
dlls/ntdll/directory.c
+15
-0
loader.c
dlls/ntdll/loader.c
+1
-5
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
No files found.
dlls/ntdll/directory.c
View file @
4e772228
...
...
@@ -153,6 +153,9 @@ static int show_dot_files = -1;
/* at some point we may want to allow Winelib apps to set this */
static
const
int
is_case_sensitive
=
FALSE
;
UNICODE_STRING
windows_dir
=
{
0
,
0
,
NULL
};
/* windows directory */
UNICODE_STRING
system_dir
=
{
0
,
0
,
NULL
};
/* system directory */
static
RTL_CRITICAL_SECTION
dir_section
;
static
RTL_CRITICAL_SECTION_DEBUG
critsect_debug
=
{
...
...
@@ -1835,6 +1838,18 @@ not_found:
}
/***********************************************************************
* DIR_init_windows_dir
*/
void
DIR_init_windows_dir
(
const
WCHAR
*
win
,
const
WCHAR
*
sys
)
{
/* FIXME: should probably store paths as NT file names */
RtlCreateUnicodeString
(
&
windows_dir
,
win
);
RtlCreateUnicodeString
(
&
system_dir
,
sys
);
}
/******************************************************************************
* get_dos_device
*
...
...
dlls/ntdll/loader.c
View file @
4e772228
...
...
@@ -98,9 +98,6 @@ 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
;
static
RTL_CRITICAL_SECTION_DEBUG
critsect_debug
=
{
...
...
@@ -2654,8 +2651,7 @@ void CDECL __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
);
DIR_init_windows_dir
(
windir
,
sysdir
);
strcpyW
(
user_shared_data
->
NtSystemRoot
,
windir
);
/* prepend the system dir to the name of the already created modules */
...
...
dlls/ntdll/ntdll_misc.h
View file @
4e772228
...
...
@@ -139,6 +139,7 @@ extern NTSTATUS TAPE_DeviceIoControl(HANDLE hDevice,
/* file I/O */
extern
NTSTATUS
FILE_GetNtStatus
(
void
);
extern
void
DIR_init_windows_dir
(
const
WCHAR
*
windir
,
const
WCHAR
*
sysdir
);
extern
BOOL
DIR_is_hidden_file
(
const
UNICODE_STRING
*
name
);
extern
NTSTATUS
DIR_unmount_device
(
HANDLE
handle
);
extern
NTSTATUS
DIR_get_unix_cwd
(
char
**
cwd
);
...
...
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