Commit 74605efe authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

kernel32/tests: Get rid of unneeded function typedefs.

parent 7f0cfac5
...@@ -23,27 +23,24 @@ ...@@ -23,27 +23,24 @@
#include "wine/test.h" #include "wine/test.h"
#include "winbase.h" #include "winbase.h"
typedef HANDLE (WINAPI *fnCreateWaitableTimerA)( SECURITY_ATTRIBUTES*, BOOL, LPSTR );
typedef BOOL (WINAPI *fnSetWaitableTimer)(HANDLE, LARGE_INTEGER*, LONG, PTIMERAPCROUTINE, LPVOID, BOOL);
static void test_timer(void) static void test_timer(void)
{ {
HANDLE (WINAPI *pCreateWaitableTimerA)( SECURITY_ATTRIBUTES*, BOOL, LPSTR );
BOOL (WINAPI *pSetWaitableTimer)(HANDLE, LARGE_INTEGER*, LONG, PTIMERAPCROUTINE, LPVOID, BOOL);
HMODULE hker = GetModuleHandle("kernel32"); HMODULE hker = GetModuleHandle("kernel32");
fnCreateWaitableTimerA pCreateWaitableTimerA;
fnSetWaitableTimer pSetWaitableTimer;
HANDLE handle; HANDLE handle;
BOOL r; BOOL r;
LARGE_INTEGER due; LARGE_INTEGER due;
pCreateWaitableTimerA = (fnCreateWaitableTimerA) GetProcAddress( hker, "CreateWaitableTimerA"); pCreateWaitableTimerA = (void*)GetProcAddress( hker, "CreateWaitableTimerA");
if( !pCreateWaitableTimerA ) if( !pCreateWaitableTimerA )
{ {
win_skip("CreateWaitableTimerA is not available\n"); win_skip("CreateWaitableTimerA is not available\n");
return; return;
} }
pSetWaitableTimer = (fnSetWaitableTimer) GetProcAddress( hker, "SetWaitableTimer"); pSetWaitableTimer = (void*)GetProcAddress( hker, "SetWaitableTimer");
if( !pSetWaitableTimer ) if( !pSetWaitableTimer )
{ {
win_skip("SetWaitableTimer is not available\n"); win_skip("SetWaitableTimer is not available\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment