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
e614610a
Commit
e614610a
authored
Feb 27, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Introduce and use new reg_(open|create)_ascii_key helpers.
parent
6b8b35f9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
font.c
dlls/win32u/font.c
+15
-2
sysparams.c
dlls/win32u/sysparams.c
+0
-0
win32u_private.h
dlls/win32u/win32u_private.h
+3
-0
No files found.
dlls/win32u/font.c
View file @
e614610a
...
...
@@ -516,6 +516,12 @@ HKEY reg_open_key( HKEY root, const WCHAR *name, ULONG name_len )
return
ret
;
}
HKEY
reg_open_ascii_key
(
HKEY
root
,
const
char
*
name
)
{
WCHAR
nameW
[
MAX_PATH
];
return
reg_open_key
(
root
,
nameW
,
asciiz_to_unicode
(
nameW
,
name
)
-
sizeof
(
WCHAR
)
);
}
/* wrapper for NtCreateKey that creates the key recursively if necessary */
HKEY
reg_create_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
,
DWORD
options
,
DWORD
*
disposition
)
...
...
@@ -565,10 +571,17 @@ HKEY reg_create_key( HKEY root, const WCHAR *name, ULONG name_len,
return
ret
;
}
HKEY
reg_create_ascii_key
(
HKEY
root
,
const
char
*
name
,
DWORD
options
,
DWORD
*
disposition
)
{
WCHAR
nameW
[
MAX_PATH
];
return
reg_create_key
(
root
,
nameW
,
asciiz_to_unicode
(
nameW
,
name
)
-
sizeof
(
WCHAR
),
options
,
disposition
);
}
HKEY
reg_open_hkcu_key
(
const
char
*
name
)
{
WCHAR
nameW
[
128
];
return
reg_open_key
(
hkcu_key
,
nameW
,
asciiz_to_unicode
(
nameW
,
name
)
-
sizeof
(
WCHAR
)
);
return
reg_open_ascii_key
(
hkcu_key
,
name
);
}
BOOL
set_reg_value
(
HKEY
hkey
,
const
WCHAR
*
name
,
UINT
type
,
const
void
*
value
,
DWORD
count
)
...
...
dlls/win32u/sysparams.c
View file @
e614610a
This diff is collapsed.
Click to expand it.
dlls/win32u/win32u_private.h
View file @
e614610a
...
...
@@ -260,8 +260,11 @@ extern int muldiv( int a, int b, int c );
extern
HKEY
reg_create_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
,
DWORD
options
,
DWORD
*
disposition
);
extern
HKEY
reg_create_ascii_key
(
HKEY
root
,
const
char
*
name
,
DWORD
options
,
DWORD
*
disposition
);
extern
HKEY
reg_open_hkcu_key
(
const
char
*
name
);
extern
HKEY
reg_open_key
(
HKEY
root
,
const
WCHAR
*
name
,
ULONG
name_len
);
extern
HKEY
reg_open_ascii_key
(
HKEY
root
,
const
char
*
name
);
extern
ULONG
query_reg_value
(
HKEY
hkey
,
const
WCHAR
*
name
,
KEY_VALUE_PARTIAL_INFORMATION
*
info
,
ULONG
size
);
extern
ULONG
query_reg_ascii_value
(
HKEY
hkey
,
const
char
*
name
,
...
...
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