Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
34e10ee3
Commit
34e10ee3
authored
Jun 24, 2000
by
Hidenori Takeshima
Committed by
Alexandre Julliard
Jun 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetCommandLine should return non-const strings.
parent
20b87c06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
winbase.h
include/winbase.h
+6
-2
environ.c
memory/environ.c
+2
-2
spec32.c
tools/winebuild/spec32.c
+2
-2
No files found.
include/winbase.h
View file @
34e10ee3
...
@@ -1379,8 +1379,8 @@ BOOL WINAPI GetCommModemStatus(HANDLE,LPDWORD);
...
@@ -1379,8 +1379,8 @@ BOOL WINAPI GetCommModemStatus(HANDLE,LPDWORD);
BOOL
WINAPI
GetCommProperties
(
HANDLE
,
LPCOMMPROP
);
BOOL
WINAPI
GetCommProperties
(
HANDLE
,
LPCOMMPROP
);
BOOL
WINAPI
GetCommState
(
HANDLE
,
LPDCB
);
BOOL
WINAPI
GetCommState
(
HANDLE
,
LPDCB
);
BOOL
WINAPI
GetCommTimeouts
(
HANDLE
,
LPCOMMTIMEOUTS
);
BOOL
WINAPI
GetCommTimeouts
(
HANDLE
,
LPCOMMTIMEOUTS
);
LP
CSTR
WINAPI
GetCommandLineA
(
void
);
LP
STR
WINAPI
GetCommandLineA
(
void
);
LP
CWSTR
WINAPI
GetCommandLineW
(
void
);
LP
WSTR
WINAPI
GetCommandLineW
(
void
);
#define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
#define GetCommandLine WINELIB_NAME_AW(GetCommandLine)
BOOL
WINAPI
GetComputerNameA
(
LPSTR
,
LPDWORD
);
BOOL
WINAPI
GetComputerNameA
(
LPSTR
,
LPDWORD
);
BOOL
WINAPI
GetComputerNameW
(
LPWSTR
,
LPDWORD
);
BOOL
WINAPI
GetComputerNameW
(
LPWSTR
,
LPDWORD
);
...
@@ -2004,6 +2004,10 @@ VOID WINAPI SetLastError(DWORD);
...
@@ -2004,6 +2004,10 @@ VOID WINAPI SetLastError(DWORD);
#define GetCurrentThread() ((HANDLE)0xfffffffe)
#define GetCurrentThread() ((HANDLE)0xfffffffe)
#endif
#endif
/* WinMain(entry point) must be declared in winbase.h. */
/* If this is not declared, we cannot compile many sources written with C++. */
int
WINAPI
WinMain
(
HINSTANCE
,
HINSTANCE
,
LPSTR
,
int
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
memory/environ.c
View file @
34e10ee3
...
@@ -103,7 +103,7 @@ BOOL ENV_BuildEnvironment(void)
...
@@ -103,7 +103,7 @@ BOOL ENV_BuildEnvironment(void)
/***********************************************************************
/***********************************************************************
* GetCommandLineA (KERNEL32.289)
* GetCommandLineA (KERNEL32.289)
*/
*/
LP
C
STR
WINAPI
GetCommandLineA
(
void
)
LPSTR
WINAPI
GetCommandLineA
(
void
)
{
{
return
PROCESS_Current
()
->
env_db
->
cmd_line
;
return
PROCESS_Current
()
->
env_db
->
cmd_line
;
}
}
...
@@ -111,7 +111,7 @@ LPCSTR WINAPI GetCommandLineA(void)
...
@@ -111,7 +111,7 @@ LPCSTR WINAPI GetCommandLineA(void)
/***********************************************************************
/***********************************************************************
* GetCommandLineW (KERNEL32.290)
* GetCommandLineW (KERNEL32.290)
*/
*/
LP
C
WSTR
WINAPI
GetCommandLineW
(
void
)
LPWSTR
WINAPI
GetCommandLineW
(
void
)
{
{
PDB
*
pdb
=
PROCESS_Current
();
PDB
*
pdb
=
PROCESS_Current
();
EnterCriticalSection
(
&
pdb
->
env_db
->
section
);
EnterCriticalSection
(
&
pdb
->
env_db
->
section
);
...
...
tools/winebuild/spec32.c
View file @
34e10ee3
...
@@ -395,9 +395,9 @@ void BuildSpec32File( FILE *outfile )
...
@@ -395,9 +395,9 @@ void BuildSpec32File( FILE *outfile )
"
\n
#include <winbase.h>
\n
"
"
\n
#include <winbase.h>
\n
"
"static void exe_main(void)
\n
"
"static void exe_main(void)
\n
"
"{
\n
"
"{
\n
"
" extern int PASCAL %s(HINSTANCE,HINSTANCE,LP
C
STR,INT);
\n
"
" extern int PASCAL %s(HINSTANCE,HINSTANCE,LPSTR,INT);
\n
"
" STARTUPINFOA info;
\n
"
" STARTUPINFOA info;
\n
"
"
const char *
cmdline = GetCommandLineA();
\n
"
"
LPSTR
cmdline = GetCommandLineA();
\n
"
" while (*cmdline && *cmdline != ' ') cmdline++;
\n
"
" while (*cmdline && *cmdline != ' ') cmdline++;
\n
"
" if (*cmdline) cmdline++;
\n
"
" if (*cmdline) cmdline++;
\n
"
" GetStartupInfoA( &info );
\n
"
" GetStartupInfoA( &info );
\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