Commit 751f683f authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

TOOLTIPS_GetTipText: Accept null module instance, Loadstring can

handle it.
parent 7dd9e339
......@@ -184,7 +184,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
{
TTTOOL_INFO *toolPtr = &infoPtr->tools[nTool];
if ((toolPtr->hinst) && (HIWORD((UINT)toolPtr->lpszText) == 0)) {
if (HIWORD((UINT)toolPtr->lpszText) == 0) {
/* load a resource */
TRACE("load res string %x %x\n",
toolPtr->hinst, (int)toolPtr->lpszText);
......@@ -208,7 +208,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
SendMessageA (toolPtr->hwnd, WM_NOTIFY,
(WPARAM)toolPtr->uId, (LPARAM)&ttnmdi);
if ((ttnmdi.hinst) && (HIWORD((UINT)ttnmdi.lpszText) == 0)) {
if (HIWORD((UINT)ttnmdi.lpszText) == 0) {
LoadStringW (ttnmdi.hinst, (UINT)ttnmdi.lpszText,
infoPtr->szTipText, INFOTIPSIZE);
if (ttnmdi.uFlags & TTF_DI_SETITEM) {
......
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