Andrey Gusev a9bf1ad81e kernel32/tests: Reorder the WINAPI with the void.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-02 22:02:56 +01:00

21 lines
381 B
C

#include <windows.h>
static HINSTANCE instance;
BOOL WINAPI DllMain(HINSTANCE instance_new, DWORD reason, LPVOID reserved)
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
instance = instance_new;
break;
}
return TRUE;
}
void WINAPI get_path(char *buffer, int buffer_size)
{
GetModuleFileNameA(instance, buffer, buffer_size);
}