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

winhlp32: Build with msvcrt.

parent 15c4352f
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 \
......
...@@ -23,7 +23,6 @@ ...@@ -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>
......
...@@ -275,10 +275,10 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name) ...@@ -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));
......
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