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
94208fce
Commit
94208fce
authored
Jan 24, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use RTL_CONSTANT_STRING instead of reimplementing it.
parent
8630a0c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
env.c
dlls/ntdll/env.c
+2
-5
registry.c
dlls/ntdll/unix/registry.c
+1
-1
virtual.c
dlls/ntdll/unix/virtual.c
+1
-1
No files found.
dlls/ntdll/env.c
View file @
94208fce
...
...
@@ -54,12 +54,9 @@ static inline SIZE_T get_env_length( const WCHAR *env )
*/
static
void
set_wow64_environment
(
WCHAR
**
env
)
{
static
WCHAR
archW
[]
=
L"PROCESSOR_ARCHITECTURE"
;
static
WCHAR
arch6432W
[]
=
L"PROCESSOR_ARCHITEW6432"
;
WCHAR
buf
[
256
];
UNICODE_STRING
arch_strW
=
{
sizeof
(
archW
)
-
sizeof
(
WCHAR
),
sizeof
(
archW
),
archW
}
;
UNICODE_STRING
arch6432_strW
=
{
sizeof
(
arch6432W
)
-
sizeof
(
WCHAR
),
sizeof
(
arch6432W
),
arch6432W
}
;
UNICODE_STRING
arch_strW
=
RTL_CONSTANT_STRING
(
L"PROCESSOR_ARCHITECTURE"
)
;
UNICODE_STRING
arch6432_strW
=
RTL_CONSTANT_STRING
(
L"PROCESSOR_ARCHITEW6432"
)
;
UNICODE_STRING
valW
=
{
0
,
sizeof
(
buf
),
buf
};
UNICODE_STRING
nameW
;
...
...
dlls/ntdll/unix/registry.c
View file @
94208fce
...
...
@@ -826,7 +826,7 @@ NTSTATUS WINAPI NtQueryLicenseValue( const UNICODE_STRING *name, ULONG *type,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'L'
,
'i'
,
'c'
,
'e'
,
'n'
,
's'
,
'e'
,
'I'
,
'n'
,
'f'
,
'o'
,
'r'
,
'm'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
UNICODE_STRING
keyW
=
{
sizeof
(
nameW
)
-
sizeof
(
WCHAR
),
sizeof
(
nameW
),
(
WCHAR
*
)
nameW
}
;
UNICODE_STRING
keyW
=
RTL_CONSTANT_STRING
(
nameW
)
;
KEY_VALUE_PARTIAL_INFORMATION
*
info
;
NTSTATUS
status
=
STATUS_OBJECT_NAME_NOT_FOUND
;
DWORD
info_length
,
count
;
...
...
dlls/ntdll/unix/virtual.c
View file @
94208fce
...
...
@@ -3192,7 +3192,7 @@ void virtual_map_user_shared_data(void)
{
static
const
WCHAR
nameW
[]
=
{
'\\'
,
'K'
,
'e'
,
'r'
,
'n'
,
'e'
,
'l'
,
'O'
,
'b'
,
'j'
,
'e'
,
'c'
,
't'
,
's'
,
'\\'
,
'_'
,
'_'
,
'w'
,
'i'
,
'n'
,
'e'
,
'_'
,
'u'
,
's'
,
'e'
,
'r'
,
'_'
,
's'
,
'h'
,
'a'
,
'r'
,
'e'
,
'd'
,
'_'
,
'd'
,
'a'
,
't'
,
'a'
,
0
};
UNICODE_STRING
name_str
=
{
sizeof
(
nameW
)
-
sizeof
(
WCHAR
),
sizeof
(
nameW
),
(
WCHAR
*
)
nameW
}
;
UNICODE_STRING
name_str
=
RTL_CONSTANT_STRING
(
nameW
)
;
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
),
0
,
&
name_str
};
unsigned
int
status
;
HANDLE
section
;
...
...
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