Convert HKEY to a void*.

This commit is contained in:
Michael Stefaniuc 2002-09-24 03:09:12 +00:00 committed by Alexandre Julliard
parent d56fd1a72f
commit 1ad2087e38
4 changed files with 17 additions and 17 deletions

View File

@ -53,7 +53,7 @@ static const WCHAR tm_valname[15] = {
'e', 'l', 0 };
static const WCHAR tm_value[5] = { 'B', 'o', 't', 'h', 0 };
static struct regsvr_entry regsvr_entries[6] = {
{ HKEY_CLASSES_ROOT, 0, clsid_keyname },
{ (int)HKEY_CLASSES_ROOT, 0, clsid_keyname },
{ 0, 1, class_keyname },
{ 1, 1, NULL, class_name },
{ 1, 1, ips32_keyname },

View File

@ -690,7 +690,7 @@ static const CSIDL_DATA CSIDL_Data[] =
"Desktop"
},
{ /* CSIDL_INTERNET */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL,
},
@ -735,7 +735,7 @@ static const CSIDL_DATA CSIDL_Data[] =
"SendTo"
},
{ /* CSIDL_BITBUCKET (is this c:\recycled ?) */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
"recycled"
},
@ -745,17 +745,17 @@ static const CSIDL_DATA CSIDL_Data[] =
"Start Menu"
},
{ /* CSIDL_MYDOCUMENTS */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL,
},
{ /* CSIDL_MYMUSIC */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL,
},
{ /* CSIDL_MYVIDEO */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL,
},
@ -770,12 +770,12 @@ static const CSIDL_DATA CSIDL_Data[] =
"Desktop"
},
{ /* CSIDL_DRIVES */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
"My Computer"
},
{ /* CSIDL_NETWORK */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
"Network Neighborhood"
},
@ -830,12 +830,12 @@ static const CSIDL_DATA CSIDL_Data[] =
"Local Settings\\Application Data",
},
{ /* CSIDL_ALTSTARTUP */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL
},
{ /* CSIDL_COMMON_ALTSTARTUP */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL
},
@ -910,17 +910,17 @@ static const CSIDL_DATA CSIDL_Data[] =
"Program Files\\Common Files" /* ? */
},
{ /* CSIDL_COMMON_TEMPLATES */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL
},
{ /* CSIDL_COMMON_DOCUMENTS */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL
},
{ /* CSIDL_COMMON_ADMINTOOLS */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL
},
@ -930,7 +930,7 @@ static const CSIDL_DATA CSIDL_Data[] =
"Start Menu\\Programs\\Administrative Tools"
},
{ /* CSIDL_CONNECTIONS */
0, 1, /* FIXME */
0, (HKEY)1, /* FIXME */
NULL,
NULL
},
@ -1020,7 +1020,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
ERR("folder unknown or not allowed\n");
return FALSE;
}
if (CSIDL_Data[folder].hRootKey == 1)
if (CSIDL_Data[folder].hRootKey == (HKEY)1)
{
FIXME("folder unknown, please add.\n");
return FALSE;

View File

@ -156,7 +156,7 @@ HRESULT WINAPI SHRegCloseKey (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;
}
/******************************************************************************

View File

@ -82,7 +82,7 @@ DECLARE_OLD_HANDLE(HFONT);
DECLARE_HANDLE(HHOOK);
DECLARE_OLD_HANDLE(HICON);
DECLARE_OLD_HANDLE(HINSTANCE);
DECLARE_OLD_HANDLE(HKEY);
DECLARE_HANDLE(HKEY);
DECLARE_HANDLE(HKL);
DECLARE_OLD_HANDLE(HMENU);
DECLARE_HANDLE(HMETAFILE);