Commit b5e2f767 authored by Alexandre Julliard's avatar Alexandre Julliard

expand: Build with msvcrt.

parent 5bf6ab71
MODULE = expand.exe
APPMODE = -mconsole
IMPORTS = setupapi
EXTRADLLFLAGS = -mconsole -mno-cygwin
C_SRCS = expand.c
......@@ -26,18 +26,18 @@
#include <lzexpand.h>
#include <setupapi.h>
static int myprintf(const char* format, ...)
static int WINAPIV myprintf(const char* format, ...)
{
va_list va;
__ms_va_list va;
char tmp[8192];
DWORD w = 0;
int len;
va_start(va, format);
__ms_va_start(va, format);
len = vsnprintf(tmp, sizeof(tmp), format, va);
if (len > 0)
WriteFile(GetStdHandle(STD_ERROR_HANDLE), tmp, len, &w, NULL);
va_end(va);
__ms_va_end(va);
return w;
}
......
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