[PATCH 2/4] comctl32/tooltips: Test the way structure size field is validated (try2)
Paul Vriens
paul.vriens.wine at gmail.com
Thu Oct 15 06:08:04 CDT 2009
On 10/15/2009 12:59 PM, Nikolay Sivov wrote:
> Changelog:
> - try2: skip for W call failure added
> - test the way structure size field is validated
>
>
>
>
Hi,
+
+ /* 1. test size parameter validation rules (ansi messages) */
+ hwnd = CreateWindowExA(0, TOOLTIPS_CLASSA, NULL, 0,
+ 10, 10, 300, 100,
+ NULL, NULL, NULL, 0);
+
+ ti.cbSize = TTTOOLINFOA_V1_SIZE - 1;
+ ti.hwnd = NULL;
+ ti.hinst = GetModuleHandleA(NULL);
+ ti.uFlags = 0;
+ ti.uId = 0x1234ABCD;
+ ti.lpszText = NULL;
+ ti.lParam = 0xdeadbeef;
+ GetClientRect(hwnd, &ti.rect);
+ r = SendMessageW(hwnd, TTM_ADDTOOLA, 0, (LPARAM)&ti);
Still some W-calls left.
--
Cheers,
Paul.
More information about the wine-devel
mailing list