Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ebd110bc
Commit
ebd110bc
authored
Aug 15, 2002
by
François Gouget
Committed by
Alexandre Julliard
Aug 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix command-line parsing for Winelib applications.
parent
933733ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
spec32.c
tools/winebuild/spec32.c
+24
-4
No files found.
tools/winebuild/spec32.c
View file @
ebd110bc
...
@@ -629,8 +629,18 @@ void BuildSpec32File( FILE *outfile )
...
@@ -629,8 +629,18 @@ void BuildSpec32File( FILE *outfile )
" extern char **__wine_main_argv;
\n
"
" extern char **__wine_main_argv;
\n
"
" STARTUPINFOA info;
\n
"
" STARTUPINFOA info;
\n
"
" char *cmdline = GetCommandLineA();
\n
"
" char *cmdline = GetCommandLineA();
\n
"
" while (*cmdline && *cmdline != ' ') cmdline++;
\n
"
" int bcount=0, in_quotes=0;
\n
"
" if (*cmdline) cmdline++;
\n
"
" while (*cmdline) {
\n
"
" if ((*cmdline=='
\\
t' || *cmdline==' ') && !in_quotes) break;
\n
"
" else if (*cmdline=='
\\\\
') bcount++;
\n
"
" else if (*cmdline=='
\\\"
') {
\n
"
" if ((bcount & 1)==0) in_quotes=!in_quotes;
\n
"
" bcount=0;
\n
"
" }
\n
"
" else bcount=0;
\n
"
" cmdline++;
\n
"
" }
\n
"
" while (*cmdline=='
\\
t' || *cmdline==' ') cmdline++;
\n
"
" GetStartupInfoA( &info );
\n
"
" GetStartupInfoA( &info );
\n
"
" if (!(info.dwFlags & 1)) info.wShowWindow = 1;
\n
"
" if (!(info.dwFlags & 1)) info.wShowWindow = 1;
\n
"
" _ARGC = __wine_main_argc;
\n
"
" _ARGC = __wine_main_argc;
\n
"
...
@@ -666,8 +676,18 @@ void BuildSpec32File( FILE *outfile )
...
@@ -666,8 +676,18 @@ void BuildSpec32File( FILE *outfile )
" extern WCHAR **__wine_main_wargv;
\n
"
" extern WCHAR **__wine_main_wargv;
\n
"
" STARTUPINFOA info;
\n
"
" STARTUPINFOA info;
\n
"
" char *cmdline = GetCommandLineA();
\n
"
" char *cmdline = GetCommandLineA();
\n
"
" while (*cmdline && *cmdline != ' ') cmdline++;
\n
"
" int bcount=0, in_quotes=0;
\n
"
" if (*cmdline) cmdline++;
\n
"
" while (*cmdline) {
\n
"
" if ((*cmdline=='
\\
t' || *cmdline==' ') && !in_quotes) break;
\n
"
" else if (*cmdline=='
\\\\
') bcount++;
\n
"
" else if (*cmdline=='
\\\"
') {
\n
"
" if ((bcount & 1)==0) in_quotes=!in_quotes;
\n
"
" bcount=0;
\n
"
" }
\n
"
" else bcount=0;
\n
"
" cmdline++;
\n
"
" }
\n
"
" while (*cmdline=='
\\
t' || *cmdline==' ') cmdline++;
\n
"
" GetStartupInfoA( &info );
\n
"
" GetStartupInfoA( &info );
\n
"
" if (!(info.dwFlags & 1)) info.wShowWindow = 1;
\n
"
" if (!(info.dwFlags & 1)) info.wShowWindow = 1;
\n
"
" _ARGC = __wine_main_argc;
\n
"
" _ARGC = __wine_main_argc;
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment