winhlp32: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alexandre Julliard 2019-05-02 09:31:16 +02:00
parent 15c4352f4c
commit 6cd7240fec
3 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,9 @@
MODULE = winhlp32.exe MODULE = winhlp32.exe
APPMODE = -mwindows
IMPORTS = user32 gdi32 IMPORTS = user32 gdi32
DELAYIMPORTS = shell32 comctl32 comdlg32 DELAYIMPORTS = shell32 comctl32 comdlg32
EXTRADLLFLAGS = -mwindows -mno-cygwin
C_SRCS = \ C_SRCS = \
callback.c \ callback.c \
hlpfile.c \ hlpfile.c \

View File

@ -23,7 +23,6 @@
%option noinput nounput never-interactive 8bit %option noinput nounput never-interactive 8bit
%x quote %x quote
%{ %{
#include "config.h"
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -275,10 +275,10 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name)
strcpy(mwi.name, "main"); strcpy(mwi.name, "main");
if (hlpfile && hlpfile->lpszTitle[0]) if (hlpfile && hlpfile->lpszTitle[0])
{ {
char tmp[128]; char tmp[40];
LoadStringA(Globals.hInstance, STID_WINE_HELP, tmp, sizeof(tmp)); LoadStringA(Globals.hInstance, STID_WINE_HELP, tmp, sizeof(tmp));
snprintf(mwi.caption, sizeof(mwi.caption), "%s %s - %s", _snprintf(mwi.caption, sizeof(mwi.caption), "%s %s - %s",
hlpfile->lpszTitle, tmp, hlpfile->lpszPath); hlpfile->lpszTitle, tmp, hlpfile->lpszPath);
} }
else else
LoadStringA(Globals.hInstance, STID_WINE_HELP, mwi.caption, sizeof(mwi.caption)); LoadStringA(Globals.hInstance, STID_WINE_HELP, mwi.caption, sizeof(mwi.caption));