[Bug 17563] Crash when using TTM_GETTEXT + LPSTR_CALLBACK

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Feb 28 16:21:33 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=17563





--- Comment #1 from GameZelda <gamezelda2 at gmail.com>  2009-02-28 16:21:33 ---
It seems to work replacing the very last part of TOOLTIPS_GetTextA and
TOOLTIPS_GetTextW with:

---

    TOOLTIPS_GetTipText(hwnd, infoPtr, nTool);    
    WideCharToMultiByte(CP_ACP, 0, infoPtr->szTipText, -1,
                        lpToolInfo->lpszText, INFOTIPSIZE, NULL, NULL);

    return 0;
}

---

and

---

    TOOLTIPS_GetTipText(hwnd, infoPtr, nTool);
    strcpyW (lpToolInfo->lpszText, infoPtr->szTipText);

    return 0;
}


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list