1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

Link against msvcrt, fixed logic to handle quoted paths in command

line parameters.
This commit is contained in:
Andriy Palamarchuk 2002-08-15 21:46:15 +00:00 committed by Alexandre Julliard
parent fe61065cd7
commit c74b0989b4
2 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,8 @@ SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = notepad.exe
APPMODE = gui
IMPORTS = comdlg32 shell32 user32 gdi32 kernel32
IMPORTS = comdlg32 shell32 msvcrt user32 gdi32 kernel32
EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt
C_SRCS = \
License_En.c \

View File

@ -221,6 +221,11 @@ void HandleCommandLine(LPSTR cmdline)
BOOL file_exists;
char buf[MAX_PATH];
if (cmdline[0] == '"')
{
cmdline++;
cmdline[strlen(cmdline) - 1] = 0;
}
if (FileExists(cmdline))
{
file_exists = TRUE;