Commit 6cd7240f authored by Alexandre Julliard's avatar Alexandre Julliard

winhlp32: Build with msvcrt.

parent 15c4352f
MODULE = winhlp32.exe
APPMODE = -mwindows
IMPORTS = user32 gdi32
DELAYIMPORTS = shell32 comctl32 comdlg32
EXTRADLLFLAGS = -mwindows -mno-cygwin
C_SRCS = \
callback.c \
hlpfile.c \
......
......@@ -23,7 +23,6 @@
%option noinput nounput never-interactive 8bit
%x quote
%{
#include "config.h"
#include <assert.h>
#include <stdarg.h>
......
......@@ -275,10 +275,10 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name)
strcpy(mwi.name, "main");
if (hlpfile && hlpfile->lpszTitle[0])
{
char tmp[128];
char tmp[40];
LoadStringA(Globals.hInstance, STID_WINE_HELP, tmp, sizeof(tmp));
snprintf(mwi.caption, sizeof(mwi.caption), "%s %s - %s",
hlpfile->lpszTitle, tmp, hlpfile->lpszPath);
_snprintf(mwi.caption, sizeof(mwi.caption), "%s %s - %s",
hlpfile->lpszTitle, tmp, hlpfile->lpszPath);
}
else
LoadStringA(Globals.hInstance, STID_WINE_HELP, mwi.caption, sizeof(mwi.caption));
......
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