comctl32/tests: Don't test functions directly when reporting GetLastError().
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dae160ceda
commit
8ad4cce047
|
@ -564,9 +564,11 @@ static void test_wm_notifyformat(void)
|
||||||
static const INT formats[] = {NFR_UNICODE, NFR_ANSI};
|
static const INT formats[] = {NFR_UNICODE, NFR_ANSI};
|
||||||
HWND parent, pager, child;
|
HWND parent, pager, child;
|
||||||
LRESULT ret;
|
LRESULT ret;
|
||||||
|
BOOL bret;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
ok(register_notifyformat_class(), "Register test class failed, error 0x%08x\n", GetLastError());
|
bret = register_notifyformat_class();
|
||||||
|
ok(bret, "Register test class failed, error 0x%08x\n", GetLastError());
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(formats); i++)
|
for (i = 0; i < ARRAY_SIZE(formats); i++)
|
||||||
{
|
{
|
||||||
|
@ -1280,9 +1282,11 @@ static void test_wm_notify(void)
|
||||||
{&nmtv, sizeof(nmtv), &nmtv.itemOld.mask, TVIF_TEXT, &nmtv.itemOld.pszText, &nmtv.itemOld.cchTextMax,
|
{&nmtv, sizeof(nmtv), &nmtv.itemOld.mask, TVIF_TEXT, &nmtv.itemOld.pszText, &nmtv.itemOld.cchTextMax,
|
||||||
TVN_SELCHANGEDW, TVN_SELCHANGEDA, CONVERT_SEND, TVITEM_OLD_HANDLER}
|
TVN_SELCHANGEDW, TVN_SELCHANGEDA, CONVERT_SEND, TVITEM_OLD_HANDLER}
|
||||||
};
|
};
|
||||||
|
BOOL bret;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
ok(register_test_notify_class(), "Register test class failed, error 0x%08x\n", GetLastError());
|
bret = register_test_notify_class();
|
||||||
|
ok(bret, "Register test class failed, error 0x%08x\n", GetLastError());
|
||||||
|
|
||||||
parent = CreateWindowA(class, "parent", WS_OVERLAPPED, 0, 0, 100, 100, 0, 0, GetModuleHandleA(0), 0);
|
parent = CreateWindowA(class, "parent", WS_OVERLAPPED, 0, 0, 100, 100, 0, 0, GetModuleHandleA(0), 0);
|
||||||
ok(parent != NULL, "CreateWindow failed\n");
|
ok(parent != NULL, "CreateWindow failed\n");
|
||||||
|
|
Loading…
Reference in New Issue