Alexandre Julliard : winhlp32: Build with msvcrt.
Alexandre Julliard
julliard at winehq.org
Thu May 2 16:45:07 CDT 2019
Module: wine
Branch: master
Commit: 6cd7240fec06829e73f240104f6e690b7ca5ff8c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6cd7240fec06829e73f240104f6e690b7ca5ff8c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu May 2 09:31:16 2019 +0200
winhlp32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/winhlp32/Makefile.in | 3 ++-
programs/winhlp32/macro.lex.l | 1 -
programs/winhlp32/winhelp.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/programs/winhlp32/Makefile.in b/programs/winhlp32/Makefile.in
index 40ce8a1..78e0e5a 100644
--- a/programs/winhlp32/Makefile.in
+++ b/programs/winhlp32/Makefile.in
@@ -1,8 +1,9 @@
MODULE = winhlp32.exe
-APPMODE = -mwindows
IMPORTS = user32 gdi32
DELAYIMPORTS = shell32 comctl32 comdlg32
+EXTRADLLFLAGS = -mwindows -mno-cygwin
+
C_SRCS = \
callback.c \
hlpfile.c \
diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l
index eab7a79..08067a4 100644
--- a/programs/winhlp32/macro.lex.l
+++ b/programs/winhlp32/macro.lex.l
@@ -23,7 +23,6 @@
%option noinput nounput never-interactive 8bit
%x quote
%{
-#include "config.h"
#include <assert.h>
#include <stdarg.h>
diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index 7ce5d4a..a98a760 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -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));
More information about the wine-cvs
mailing list