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
a5463c88
Commit
a5463c88
authored
Sep 12, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add missing backslash to query image file execution options.
parent
d289dfc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
loader.c
dlls/ntdll/loader.c
+3
-3
No files found.
dlls/ntdll/loader.c
View file @
a5463c88
...
...
@@ -3599,7 +3599,7 @@ static NTSTATUS query_string_option( HANDLE hkey, LPCWSTR name, ULONG type,
NTSTATUS
WINAPI
LdrQueryImageFileExecutionOptions
(
const
UNICODE_STRING
*
key
,
LPCWSTR
value
,
ULONG
type
,
void
*
data
,
ULONG
in_size
,
ULONG
*
out_size
)
{
static
const
WCHAR
optionsW
[]
=
L"
\\
Registry
\\
Machine
\\
Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion
\\
Image File Execution Options"
;
static
const
WCHAR
optionsW
[]
=
L"
\\
Registry
\\
Machine
\\
Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion
\\
Image File Execution Options
\\
"
;
WCHAR
path
[
MAX_PATH
+
ARRAY_SIZE
(
optionsW
)];
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
name_str
;
...
...
@@ -3619,10 +3619,10 @@ NTSTATUS WINAPI LdrQueryImageFileExecutionOptions( const UNICODE_STRING *key, LP
while
(
p
>
key
->
Buffer
&&
p
[
-
1
]
!=
'\\'
)
p
--
;
len
=
key
->
Length
-
(
p
-
key
->
Buffer
)
*
sizeof
(
WCHAR
);
name_str
.
Buffer
=
path
;
name_str
.
Length
=
sizeof
(
optionsW
)
+
len
;
name_str
.
Length
=
sizeof
(
optionsW
)
-
sizeof
(
WCHAR
)
+
len
;
name_str
.
MaximumLength
=
name_str
.
Length
;
memcpy
(
path
,
optionsW
,
sizeof
(
optionsW
)
);
memcpy
(
path
+
ARRAY_SIZE
(
optionsW
),
p
,
len
);
memcpy
(
path
+
ARRAY_SIZE
(
optionsW
)
-
1
,
p
,
len
);
if
((
status
=
NtOpenKey
(
&
hkey
,
KEY_QUERY_VALUE
,
&
attr
)))
return
status
;
if
(
type
==
REG_DWORD
)
...
...
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