mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
Correct RegCreateKeyEx[A/W] prototype to match the PSDK.
This commit is contained in:
parent
ebf4e53030
commit
e14569d122
@ -147,7 +147,7 @@ inline static HKEY get_special_root_hkey( HKEY hkey )
|
||||
*
|
||||
* See RegCreateKeyExA.
|
||||
*/
|
||||
DWORD WINAPI RegCreateKeyExW( HKEY hkey, LPCWSTR name, DWORD reserved, LPCWSTR 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, LPCSTR class,
|
||||
DWORD WINAPI RegCreateKeyExA( HKEY hkey, LPCSTR name, DWORD reserved, LPSTR class,
|
||||
DWORD options, REGSAM access, SECURITY_ATTRIBUTES *sa,
|
||||
PHKEY retkey, LPDWORD dispos )
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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,LPCSTR,DWORD,REGSAM,
|
||||
DWORD WINAPI RegCreateKeyExA(HKEY,LPCSTR,DWORD,LPSTR,DWORD,REGSAM,
|
||||
LPSECURITY_ATTRIBUTES,PHKEY,LPDWORD);
|
||||
DWORD WINAPI RegCreateKeyExW(HKEY,LPCWSTR,DWORD,LPCWSTR,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);
|
||||
|
Loading…
Reference in New Issue
Block a user