Commit 1ad2087e authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

Convert HKEY to a void*.

parent d56fd1a7
...@@ -53,7 +53,7 @@ static const WCHAR tm_valname[15] = { ...@@ -53,7 +53,7 @@ static const WCHAR tm_valname[15] = {
'e', 'l', 0 }; 'e', 'l', 0 };
static const WCHAR tm_value[5] = { 'B', 'o', 't', 'h', 0 }; static const WCHAR tm_value[5] = { 'B', 'o', 't', 'h', 0 };
static struct regsvr_entry regsvr_entries[6] = { static struct regsvr_entry regsvr_entries[6] = {
{ HKEY_CLASSES_ROOT, 0, clsid_keyname }, { (int)HKEY_CLASSES_ROOT, 0, clsid_keyname },
{ 0, 1, class_keyname }, { 0, 1, class_keyname },
{ 1, 1, NULL, class_name }, { 1, 1, NULL, class_name },
{ 1, 1, ips32_keyname }, { 1, 1, ips32_keyname },
......
...@@ -690,7 +690,7 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -690,7 +690,7 @@ static const CSIDL_DATA CSIDL_Data[] =
"Desktop" "Desktop"
}, },
{ /* CSIDL_INTERNET */ { /* CSIDL_INTERNET */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL, NULL,
}, },
...@@ -735,7 +735,7 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -735,7 +735,7 @@ static const CSIDL_DATA CSIDL_Data[] =
"SendTo" "SendTo"
}, },
{ /* CSIDL_BITBUCKET (is this c:\recycled ?) */ { /* CSIDL_BITBUCKET (is this c:\recycled ?) */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
"recycled" "recycled"
}, },
...@@ -745,17 +745,17 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -745,17 +745,17 @@ static const CSIDL_DATA CSIDL_Data[] =
"Start Menu" "Start Menu"
}, },
{ /* CSIDL_MYDOCUMENTS */ { /* CSIDL_MYDOCUMENTS */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL, NULL,
}, },
{ /* CSIDL_MYMUSIC */ { /* CSIDL_MYMUSIC */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL, NULL,
}, },
{ /* CSIDL_MYVIDEO */ { /* CSIDL_MYVIDEO */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL, NULL,
}, },
...@@ -770,12 +770,12 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -770,12 +770,12 @@ static const CSIDL_DATA CSIDL_Data[] =
"Desktop" "Desktop"
}, },
{ /* CSIDL_DRIVES */ { /* CSIDL_DRIVES */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
"My Computer" "My Computer"
}, },
{ /* CSIDL_NETWORK */ { /* CSIDL_NETWORK */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
"Network Neighborhood" "Network Neighborhood"
}, },
...@@ -830,12 +830,12 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -830,12 +830,12 @@ static const CSIDL_DATA CSIDL_Data[] =
"Local Settings\\Application Data", "Local Settings\\Application Data",
}, },
{ /* CSIDL_ALTSTARTUP */ { /* CSIDL_ALTSTARTUP */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL NULL
}, },
{ /* CSIDL_COMMON_ALTSTARTUP */ { /* CSIDL_COMMON_ALTSTARTUP */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL NULL
}, },
...@@ -910,17 +910,17 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -910,17 +910,17 @@ static const CSIDL_DATA CSIDL_Data[] =
"Program Files\\Common Files" /* ? */ "Program Files\\Common Files" /* ? */
}, },
{ /* CSIDL_COMMON_TEMPLATES */ { /* CSIDL_COMMON_TEMPLATES */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL NULL
}, },
{ /* CSIDL_COMMON_DOCUMENTS */ { /* CSIDL_COMMON_DOCUMENTS */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL NULL
}, },
{ /* CSIDL_COMMON_ADMINTOOLS */ { /* CSIDL_COMMON_ADMINTOOLS */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL NULL
}, },
...@@ -930,7 +930,7 @@ static const CSIDL_DATA CSIDL_Data[] = ...@@ -930,7 +930,7 @@ static const CSIDL_DATA CSIDL_Data[] =
"Start Menu\\Programs\\Administrative Tools" "Start Menu\\Programs\\Administrative Tools"
}, },
{ /* CSIDL_CONNECTIONS */ { /* CSIDL_CONNECTIONS */
0, 1, /* FIXME */ 0, (HKEY)1, /* FIXME */
NULL, NULL,
NULL NULL
}, },
...@@ -1020,7 +1020,7 @@ BOOL WINAPI SHGetSpecialFolderPathA ( ...@@ -1020,7 +1020,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
ERR("folder unknown or not allowed\n"); ERR("folder unknown or not allowed\n");
return FALSE; return FALSE;
} }
if (CSIDL_Data[folder].hRootKey == 1) if (CSIDL_Data[folder].hRootKey == (HKEY)1)
{ {
FIXME("folder unknown, please add.\n"); FIXME("folder unknown, please add.\n");
return FALSE; return FALSE;
......
...@@ -156,7 +156,7 @@ HRESULT WINAPI SHRegCloseKey (HKEY hkey) ...@@ -156,7 +156,7 @@ HRESULT WINAPI SHRegCloseKey (HKEY hkey)
*/ */
static inline void fix_win16_hkey( HKEY *hkey ) static inline void fix_win16_hkey( HKEY *hkey )
{ {
if (*hkey == 0 || *hkey == 1) *hkey = HKEY_CLASSES_ROOT; if (*hkey == 0 || *hkey == (HKEY)1) *hkey = HKEY_CLASSES_ROOT;
} }
/****************************************************************************** /******************************************************************************
......
...@@ -82,7 +82,7 @@ DECLARE_OLD_HANDLE(HFONT); ...@@ -82,7 +82,7 @@ DECLARE_OLD_HANDLE(HFONT);
DECLARE_HANDLE(HHOOK); DECLARE_HANDLE(HHOOK);
DECLARE_OLD_HANDLE(HICON); DECLARE_OLD_HANDLE(HICON);
DECLARE_OLD_HANDLE(HINSTANCE); DECLARE_OLD_HANDLE(HINSTANCE);
DECLARE_OLD_HANDLE(HKEY); DECLARE_HANDLE(HKEY);
DECLARE_HANDLE(HKL); DECLARE_HANDLE(HKL);
DECLARE_OLD_HANDLE(HMENU); DECLARE_OLD_HANDLE(HMENU);
DECLARE_HANDLE(HMETAFILE); DECLARE_HANDLE(HMETAFILE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment