expand: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5bf6ab713d
commit
b5e2f767b6
|
@ -1,5 +1,6 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue