FIX: TTM_GETTEXT Message Zeros the Passed Pointer (186177)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Internet Explorer (Programming) 4.01
- Microsoft Internet Explorer (Programming) 4.01 SP1
This article was previously published under Q186177 SYMPTOMS
When sending a TTM_GETTEXT message to a ToolTip control, a first-chance
exception occurs and the lpszText member of the TOOLINFO structure is set
to NULL. This only occurs on Windows 98 or any 32-bit platform that has
Internet Explorer 4.01 SP1 installed.
CAUSE
There is a bug that occurs in the processing of this message that
inadvertently sets the lpszText member of the TOOLINFO structure to NULL,
rather than setting the first character of lpszText to zero.
RESOLUTION
You can work around this bug in one of the following ways, depending on the
platform you are running on:
- Under Windows 95 or Windows 98, you need to use the TTM_GETTOOLINFO
message instead of the TTM_GETTEXT message.
- Under Windows NT, you can either use the TTM_GETTOOLINFO message or the
TTM_GETTEXTA message.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Windows 2000. MORE INFORMATION
This bug is only present in version 4.72.3110.x of COMCtl32.dll. This
version is included with Internet Explorer 4.01 Service Pack 1 and Windows
98.
Under Windows 95 and Windows 98, this bug affects the TTM_GETTEXTA message.
Under Windows NT, this bug affects the TTM_GETTEXTW message. This bug does
not affect the TTM_GETTEXTA message under Windows NT.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbbug kbCtrl kbfix kbOSWin2000fix KB186177 |
---|
|