Remove some unnecessary casts when assigning NULL to handles.

This commit is contained in:
Francois Gouget 2003-07-02 04:30:55 +00:00 committed by Alexandre Julliard
parent 2348e7a098
commit 5054045f6b
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ typedef struct tagInputContextData
} InputContextData;
static InputContextData *root_context = NULL;
static HWND hwndDefault = (HWND)NULL;
static HWND hwndDefault = NULL;
static HANDLE hImeInst;
static const WCHAR WC_IMECLASSNAME[] = {'W','i','n','e','I','M','E','C','l','a','s','s',0};
@ -68,7 +68,7 @@ static void IMM_Register(void)
wndClass.lpfnWndProc = IME_WindowProc;
wndClass.cbClsExtra = 0;
wndClass.cbWndExtra = 0;
wndClass.hCursor = (HCURSOR)NULL;
wndClass.hCursor = NULL;
wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW +1);
wndClass.lpszClassName = WC_IMECLASSNAME;
RegisterClassW(&wndClass);
@ -76,7 +76,7 @@ static void IMM_Register(void)
static void IMM_Unregister(void)
{
UnregisterClassW(WC_IMECLASSNAME, (HINSTANCE)NULL);
UnregisterClassW(WC_IMECLASSNAME, NULL);
}

View File

@ -253,7 +253,7 @@ static BOOL ExtractFromEXEDLL(const char *szFileName, int nIndex, const char *sz
}
else
{
hResInfo=(HRSRC)NULL;
hResInfo=NULL;
sEnumRes.pResInfo = &hResInfo;
sEnumRes.nIndex = nIndex;
EnumResourceNamesA(hModule, RT_GROUP_ICONA, &EnumResNameProc, (LONG) &sEnumRes);