mirror of
https://github.com/reactos/wine.git
synced 2024-12-04 09:53:54 +00:00
comctl32: Export TaskDialogIndirect by ordinal and name.
This commit is contained in:
parent
12f3ac4f46
commit
61a6a4f476
@ -61,6 +61,7 @@
|
||||
340 stdcall -ordinal DPA_CreateEx(long long)
|
||||
341 stdcall -noname SendNotify(long long long ptr)
|
||||
342 stdcall -noname SendNotifyEx(long long long ptr long)
|
||||
345 stdcall -ordinal TaskDialogIndirect(ptr ptr ptr ptr)
|
||||
350 stdcall -noname StrChrA(str str)
|
||||
351 stdcall -noname StrRChrA(str str long)
|
||||
352 stdcall -noname StrCmpNA(str str long)
|
||||
@ -188,6 +189,5 @@
|
||||
@ stdcall PropertySheet(ptr) PropertySheetA
|
||||
@ stdcall PropertySheetA(ptr)
|
||||
@ stdcall PropertySheetW(ptr)
|
||||
@ stdcall TaskDialogIndirect(ptr ptr ptr ptr)
|
||||
@ stdcall UninitializeFlatSB(long)
|
||||
@ stdcall _TrackMouseEvent(ptr)
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
#include "v6util.h"
|
||||
|
||||
static PVOID (WINAPI * pAlloc)(LONG);
|
||||
static PVOID (WINAPI * pReAlloc)(PVOID, LONG);
|
||||
@ -186,13 +187,39 @@ static void test_Alloc(void)
|
||||
ok(res == TRUE, "Expected TRUE, got %d\n", res);
|
||||
}
|
||||
|
||||
static void test_TaskDialogIndirect(void)
|
||||
{
|
||||
HINSTANCE hinst;
|
||||
void *ptr, *ptr2;
|
||||
|
||||
hinst = LoadLibraryA("comctl32.dll");
|
||||
|
||||
ptr = GetProcAddress(hinst, "TaskDialogIndirect");
|
||||
if (!ptr)
|
||||
{
|
||||
win_skip("TaskDialogIndirect not exported by name\n");
|
||||
return;
|
||||
}
|
||||
|
||||
ptr2 = GetProcAddress(hinst, (const CHAR*)345);
|
||||
ok(ptr == ptr2, "got wrong pointer for ordinal 345, %p expected %p\n", ptr2, ptr);
|
||||
}
|
||||
|
||||
START_TEST(misc)
|
||||
{
|
||||
ULONG_PTR ctx_cookie;
|
||||
HANDLE hCtx;
|
||||
|
||||
if(!InitFunctionPtrs())
|
||||
return;
|
||||
|
||||
test_GetPtrAW();
|
||||
test_Alloc();
|
||||
|
||||
FreeLibrary(hComctl32);
|
||||
if (!load_v6_module(&ctx_cookie, &hCtx))
|
||||
return;
|
||||
|
||||
test_TaskDialogIndirect();
|
||||
|
||||
unload_v6_module(ctx_cookie, hCtx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user