mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
[comctl32]
- Fix a critical bug in TOOLTIPS_NotifyFormat. Its first parameter changed from HWND to infoPtr pointer, however the function was not updated accordingly. svn path=/trunk/; revision=44014
This commit is contained in:
parent
f7b4286b58
commit
9fd4efa3e3
|
@ -2402,13 +2402,12 @@ TOOLTIPS_NCHitTest (const TOOLTIPS_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
||||||
|
|
||||||
static LRESULT
|
static LRESULT
|
||||||
TOOLTIPS_NotifyFormat (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
TOOLTIPS_NotifyFormat (TOOLTIPS_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
TOOLTIPS_INFO *infoPtr = TOOLTIPS_GetInfoPtr (hwnd);
|
|
||||||
TTTOOL_INFO *toolPtr = infoPtr->tools;
|
TTTOOL_INFO *toolPtr = infoPtr->tools;
|
||||||
INT nResult;
|
INT nResult;
|
||||||
|
|
||||||
TRACE("hwnd=%p wParam=%lx lParam=%lx\n", hwnd, wParam, lParam);
|
TRACE("hwnd=%p wParam=%lx lParam=%lx\n", infoPtr->hwndSelf, wParam, lParam);
|
||||||
|
|
||||||
if (lParam == NF_QUERY) {
|
if (lParam == NF_QUERY) {
|
||||||
if (toolPtr->bNotifyUnicode) {
|
if (toolPtr->bNotifyUnicode) {
|
||||||
|
@ -2419,7 +2418,7 @@ TOOLTIPS_NotifyFormat (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
else if (lParam == NF_REQUERY) {
|
else if (lParam == NF_REQUERY) {
|
||||||
nResult = (INT) SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
|
nResult = (INT) SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
|
||||||
(WPARAM)hwnd, (LPARAM)NF_QUERY);
|
(WPARAM)infoPtr->hwndSelf, (LPARAM)NF_QUERY);
|
||||||
if (nResult == NFR_ANSI) {
|
if (nResult == NFR_ANSI) {
|
||||||
toolPtr->bNotifyUnicode = FALSE;
|
toolPtr->bNotifyUnicode = FALSE;
|
||||||
TRACE(" -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");
|
TRACE(" -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");
|
||||||
|
|
Loading…
Reference in a new issue