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
e14569d1
Commit
e14569d1
authored
Jul 28, 2005
by
Steven Edwards
Committed by
Alexandre Julliard
Jul 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct RegCreateKeyEx[A/W] prototype to match the PSDK.
parent
ebf4e530
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
registry.c
dlls/advapi32/registry.c
+2
-2
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+2
-4
reg.c
dlls/shlwapi/reg.c
+2
-4
winreg.h
include/winreg.h
+2
-2
No files found.
dlls/advapi32/registry.c
View file @
e14569d1
...
...
@@ -147,7 +147,7 @@ inline static HKEY get_special_root_hkey( HKEY hkey )
*
* See RegCreateKeyExA.
*/
DWORD
WINAPI
RegCreateKeyExW
(
HKEY
hkey
,
LPCWSTR
name
,
DWORD
reserved
,
LP
C
WSTR
class
,
DWORD
WINAPI
RegCreateKeyExW
(
HKEY
hkey
,
LPCWSTR
name
,
DWORD
reserved
,
LPWSTR
class
,
DWORD
options
,
REGSAM
access
,
SECURITY_ATTRIBUTES
*
sa
,
PHKEY
retkey
,
LPDWORD
dispos
)
{
...
...
@@ -195,7 +195,7 @@ DWORD WINAPI RegCreateKeyExW( HKEY hkey, LPCWSTR name, DWORD reserved, LPCWSTR c
* FIXME
* MAXIMUM_ALLOWED in access mask not supported by server
*/
DWORD
WINAPI
RegCreateKeyExA
(
HKEY
hkey
,
LPCSTR
name
,
DWORD
reserved
,
LP
C
STR
class
,
DWORD
WINAPI
RegCreateKeyExA
(
HKEY
hkey
,
LPCSTR
name
,
DWORD
reserved
,
LPSTR
class
,
DWORD
options
,
REGSAM
access
,
SECURITY_ATTRIBUTES
*
sa
,
PHKEY
retkey
,
LPDWORD
dispos
)
{
...
...
dlls/comctl32/comctl32undoc.c
View file @
e14569d1
...
...
@@ -274,7 +274,6 @@ static void MRU_SaveChanged ( LPWINEMRULIST mp )
HKEY
newkey
;
WCHAR
realname
[
2
];
LPWINEMRUITEM
witem
;
static
const
WCHAR
emptyW
[]
=
{
'\0'
};
/* or should we do the following instead of RegOpenKeyEx:
*/
...
...
@@ -287,7 +286,7 @@ static void MRU_SaveChanged ( LPWINEMRULIST mp )
err
);
if
((
err
=
RegCreateKeyExW
(
mp
->
extview
.
hKey
,
mp
->
extview
.
lpszSubKey
,
0
,
emptyW
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_READ
|
KEY_WRITE
,
0
,
...
...
@@ -653,7 +652,6 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
WCHAR
realname
[
2
];
LPWINEMRUITEM
witem
;
DWORD
type
;
static
const
WCHAR
emptyW
[]
=
{
'\0'
};
/* get space to save indices that will turn into names
* but in order of most to least recently used
...
...
@@ -668,7 +666,7 @@ static HANDLE CreateMRUListLazy_common(LPWINEMRULIST mp)
/* open the sub key */
if
((
err
=
RegCreateKeyExW
(
mp
->
extview
.
hKey
,
mp
->
extview
.
lpszSubKey
,
0
,
emptyW
,
NULL
,
REG_OPTION_NON_VOLATILE
,
KEY_READ
|
KEY_WRITE
,
0
,
...
...
dlls/shlwapi/reg.c
View file @
e14569d1
...
...
@@ -1191,13 +1191,12 @@ DWORD WINAPI SHSetValueA(HKEY hKey, LPCSTR lpszSubKey, LPCSTR lpszValue,
{
DWORD
dwRet
=
ERROR_SUCCESS
,
dwDummy
;
HKEY
hSubKey
;
static
const
char
szEmpty
[]
=
{
'\0'
};
TRACE
(
"(hkey=%p,%s,%s,%ld,%p,%ld)
\n
"
,
hKey
,
debugstr_a
(
lpszSubKey
),
debugstr_a
(
lpszValue
),
dwType
,
pvData
,
cbData
);
if
(
lpszSubKey
&&
*
lpszSubKey
)
dwRet
=
RegCreateKeyExA
(
hKey
,
lpszSubKey
,
0
,
szEmpty
,
dwRet
=
RegCreateKeyExA
(
hKey
,
lpszSubKey
,
0
,
NULL
,
0
,
KEY_SET_VALUE
,
NULL
,
&
hSubKey
,
&
dwDummy
);
else
hSubKey
=
hKey
;
...
...
@@ -1220,13 +1219,12 @@ DWORD WINAPI SHSetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue,
{
DWORD
dwRet
=
ERROR_SUCCESS
,
dwDummy
;
HKEY
hSubKey
;
static
const
WCHAR
szEmpty
[]
=
{
'\0'
};
TRACE
(
"(hkey=%p,%s,%s,%ld,%p,%ld)
\n
"
,
hKey
,
debugstr_w
(
lpszSubKey
),
debugstr_w
(
lpszValue
),
dwType
,
pvData
,
cbData
);
if
(
lpszSubKey
&&
*
lpszSubKey
)
dwRet
=
RegCreateKeyExW
(
hKey
,
lpszSubKey
,
0
,
szEmpty
,
dwRet
=
RegCreateKeyExW
(
hKey
,
lpszSubKey
,
0
,
NULL
,
0
,
KEY_SET_VALUE
,
NULL
,
&
hSubKey
,
&
dwDummy
);
else
hSubKey
=
hKey
;
...
...
include/winreg.h
View file @
e14569d1
...
...
@@ -89,9 +89,9 @@ BOOL WINAPI InitiateSystemShutdownW(LPWSTR,LPWSTR,DWORD,BOOL,BOOL);
BOOL
WINAPI
InitiateSystemShutdownExA
(
LPSTR
,
LPSTR
,
DWORD
,
BOOL
,
BOOL
,
DWORD
);
BOOL
WINAPI
InitiateSystemShutdownExW
(
LPWSTR
,
LPWSTR
,
DWORD
,
BOOL
,
BOOL
,
DWORD
);
#define InitiateSystemShutdownEx WINELIB_NAME_AW(InitiateSystemShutdownEx);
DWORD
WINAPI
RegCreateKeyExA
(
HKEY
,
LPCSTR
,
DWORD
,
LP
C
STR
,
DWORD
,
REGSAM
,
DWORD
WINAPI
RegCreateKeyExA
(
HKEY
,
LPCSTR
,
DWORD
,
LPSTR
,
DWORD
,
REGSAM
,
LPSECURITY_ATTRIBUTES
,
PHKEY
,
LPDWORD
);
DWORD
WINAPI
RegCreateKeyExW
(
HKEY
,
LPCWSTR
,
DWORD
,
LP
C
WSTR
,
DWORD
,
REGSAM
,
DWORD
WINAPI
RegCreateKeyExW
(
HKEY
,
LPCWSTR
,
DWORD
,
LPWSTR
,
DWORD
,
REGSAM
,
LPSECURITY_ATTRIBUTES
,
PHKEY
,
LPDWORD
);
#define RegCreateKeyEx WINELIB_NAME_AW(RegCreateKeyEx)
LONG
WINAPI
RegSaveKeyA
(
HKEY
,
LPCSTR
,
LPSECURITY_ATTRIBUTES
);
...
...
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