expand: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alexandre Julliard 2019-04-29 10:47:01 +02:00
parent 5bf6ab713d
commit b5e2f767b6
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
MODULE = expand.exe
APPMODE = -mconsole
IMPORTS = setupapi
EXTRADLLFLAGS = -mconsole -mno-cygwin
C_SRCS = expand.c

View File

@ -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;
}