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
40dfd9b8
Commit
40dfd9b8
authored
Nov 12, 2021
by
Thomas Faber
Committed by
Alexandre Julliard
Nov 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use _NT_ALT_SYMBOL_PATH.
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb280298
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
dbghelp.c
dlls/dbghelp/dbghelp.c
+3
-3
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+0
-2
No files found.
dlls/dbghelp/dbghelp.c
View file @
40dfd9b8
...
...
@@ -183,9 +183,9 @@ static WCHAR* make_default_search_path(void)
unsigned
alt_sym_path_len
;
sym_path_len
=
GetEnvironmentVariableW
(
L"_NT_SYMBOL_PATH"
,
NULL
,
0
);
alt_sym_path_len
=
GetEnvironmentVariableW
(
L"_NT_ALT
ERNATE
_SYMBOL_PATH"
,
NULL
,
0
);
alt_sym_path_len
=
GetEnvironmentVariableW
(
L"_NT_ALT_SYMBOL_PATH"
,
NULL
,
0
);
/* The default symbol path is ".[;%_NT_SYMBOL_PATH%][;%_NT_ALT
ERNATE
_SYMBOL_PATH%]".
/* The default symbol path is ".[;%_NT_SYMBOL_PATH%][;%_NT_ALT_SYMBOL_PATH%]".
* If the variables exist, the lengths include a null-terminator. We use that
* space for the semicolons, and only add the initial dot and the final null. */
search_path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
...
...
@@ -204,7 +204,7 @@ static WCHAR* make_default_search_path(void)
if
(
alt_sym_path_len
)
{
*
p
++
=
L';'
;
GetEnvironmentVariableW
(
L"_NT_ALT
ERNATE
_SYMBOL_PATH"
,
p
,
alt_sym_path_len
);
GetEnvironmentVariableW
(
L"_NT_ALT_SYMBOL_PATH"
,
p
,
alt_sym_path_len
);
p
+=
alt_sym_path_len
-
1
;
}
*
p
=
L'\0'
;
...
...
dlls/dbghelp/tests/dbghelp.c
View file @
40dfd9b8
...
...
@@ -171,7 +171,6 @@ static void test_search_path(void)
ok
(
ret
==
TRUE
,
"ret = %d
\n
"
,
ret
);
ret
=
SymGetSearchPath
(
GetCurrentProcess
(),
search_path
,
ARRAY_SIZE
(
search_path
));
ok
(
ret
==
TRUE
,
"ret = %d
\n
"
,
ret
);
todo_wine
ok
(
!
strcmp
(
search_path
,
".;X:
\\
;Y:
\\
"
),
"Got search path '%s', expected '.;X:
\\
;Y:
\\
'
\n
"
,
search_path
);
/* With just _NT_ALT_SYMBOL_PATH */
...
...
@@ -180,7 +179,6 @@ static void test_search_path(void)
ok
(
ret
==
TRUE
,
"ret = %d
\n
"
,
ret
);
ret
=
SymGetSearchPath
(
GetCurrentProcess
(),
search_path
,
ARRAY_SIZE
(
search_path
));
ok
(
ret
==
TRUE
,
"ret = %d
\n
"
,
ret
);
todo_wine
ok
(
!
strcmp
(
search_path
,
".;Y:
\\
"
),
"Got search path '%s', expected '.;Y:
\\
'
\n
"
,
search_path
);
/* Restore original search path */
...
...
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