Remove some unnecessary casts when assigning NULL to handles.
This commit is contained in:
parent
2348e7a098
commit
5054045f6b
|
@ -46,7 +46,7 @@ typedef struct tagInputContextData
|
||||||
} InputContextData;
|
} InputContextData;
|
||||||
|
|
||||||
static InputContextData *root_context = NULL;
|
static InputContextData *root_context = NULL;
|
||||||
static HWND hwndDefault = (HWND)NULL;
|
static HWND hwndDefault = NULL;
|
||||||
static HANDLE hImeInst;
|
static HANDLE hImeInst;
|
||||||
static const WCHAR WC_IMECLASSNAME[] = {'W','i','n','e','I','M','E','C','l','a','s','s',0};
|
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.lpfnWndProc = IME_WindowProc;
|
||||||
wndClass.cbClsExtra = 0;
|
wndClass.cbClsExtra = 0;
|
||||||
wndClass.cbWndExtra = 0;
|
wndClass.cbWndExtra = 0;
|
||||||
wndClass.hCursor = (HCURSOR)NULL;
|
wndClass.hCursor = NULL;
|
||||||
wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW +1);
|
wndClass.hbrBackground = (HBRUSH)(COLOR_WINDOW +1);
|
||||||
wndClass.lpszClassName = WC_IMECLASSNAME;
|
wndClass.lpszClassName = WC_IMECLASSNAME;
|
||||||
RegisterClassW(&wndClass);
|
RegisterClassW(&wndClass);
|
||||||
|
@ -76,7 +76,7 @@ static void IMM_Register(void)
|
||||||
|
|
||||||
static void IMM_Unregister(void)
|
static void IMM_Unregister(void)
|
||||||
{
|
{
|
||||||
UnregisterClassW(WC_IMECLASSNAME, (HINSTANCE)NULL);
|
UnregisterClassW(WC_IMECLASSNAME, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ static BOOL ExtractFromEXEDLL(const char *szFileName, int nIndex, const char *sz
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
hResInfo=(HRSRC)NULL;
|
hResInfo=NULL;
|
||||||
sEnumRes.pResInfo = &hResInfo;
|
sEnumRes.pResInfo = &hResInfo;
|
||||||
sEnumRes.nIndex = nIndex;
|
sEnumRes.nIndex = nIndex;
|
||||||
EnumResourceNamesA(hModule, RT_GROUP_ICONA, &EnumResNameProc, (LONG) &sEnumRes);
|
EnumResourceNamesA(hModule, RT_GROUP_ICONA, &EnumResNameProc, (LONG) &sEnumRes);
|
||||||
|
|
Loading…
Reference in New Issue