comctl32: Remove invalid NULL check.
This commit is contained in:
parent
b75f36595f
commit
10c3a4db67
|
@ -1383,12 +1383,10 @@ TOOLTIPS_GetCurrentToolA (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
LPTTTOOLINFOA lpToolInfo = (LPTTTOOLINFOA)lParam;
|
||||
TTTOOL_INFO *toolPtr;
|
||||
|
||||
if (lpToolInfo == NULL)
|
||||
return FALSE;
|
||||
if (lpToolInfo) {
|
||||
if (lpToolInfo->cbSize < TTTOOLINFOA_V1_SIZE)
|
||||
return FALSE;
|
||||
|
||||
if (lpToolInfo) {
|
||||
if (infoPtr->nCurrentTool > -1) {
|
||||
toolPtr = &infoPtr->tools[infoPtr->nCurrentTool];
|
||||
|
||||
|
@ -1419,12 +1417,10 @@ TOOLTIPS_GetCurrentToolW (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
LPTTTOOLINFOW lpToolInfo = (LPTTTOOLINFOW)lParam;
|
||||
TTTOOL_INFO *toolPtr;
|
||||
|
||||
if (lpToolInfo == NULL)
|
||||
return FALSE;
|
||||
if (lpToolInfo) {
|
||||
if (lpToolInfo->cbSize < TTTOOLINFOW_V1_SIZE)
|
||||
return FALSE;
|
||||
|
||||
if (lpToolInfo) {
|
||||
if (infoPtr->nCurrentTool > -1) {
|
||||
toolPtr = &infoPtr->tools[infoPtr->nCurrentTool];
|
||||
|
||||
|
|
Loading…
Reference in New Issue