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
3fe81b46
Commit
3fe81b46
authored
Feb 21, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
__getmainargs last argument is a pointer to new_mode.
parent
5f195f8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
crtdll_main.c
dlls/crtdll/crtdll_main.c
+3
-2
data.c
dlls/msvcrt/data.c
+6
-4
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-0
No files found.
dlls/crtdll/crtdll_main.c
View file @
3fe81b46
...
...
@@ -12,7 +12,7 @@ DEFAULT_DEBUG_CHANNEL(crtdll);
/* from msvcrt */
extern
void
__cdecl
__getmainargs
(
int
*
argc
,
char
***
argv
,
char
**
environ
,
int
expand_wildcards
,
void
*
_startupinfo
);
int
expand_wildcards
,
int
*
new_mode
);
/* The following data items are not exported from msvcrt */
unsigned
int
CRTDLL__basemajor_dll
;
...
...
@@ -52,5 +52,6 @@ BOOL WINAPI CRTDLL_Init(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
*/
void
__cdecl
__GetMainArgs
(
int
*
argc
,
char
***
argv
,
char
**
environ
,
int
expand_wildcards
)
{
__getmainargs
(
argc
,
argv
,
environ
,
expand_wildcards
,
NULL
);
int
new_mode
=
0
;
__getmainargs
(
argc
,
argv
,
environ
,
expand_wildcards
,
&
new_mode
);
}
dlls/msvcrt/data.c
View file @
3fe81b46
...
...
@@ -233,24 +233,26 @@ void MSVCRT_free_args(void)
* __getmainargs (MSVCRT.@)
*/
void
__cdecl
MSVCRT___getmainargs
(
int
*
argc
,
char
***
argv
,
char
**
environ
,
int
expand_wildcards
,
void
*
_startupinfo
)
int
expand_wildcards
,
int
*
new_mode
)
{
TRACE
(
"(%p,%p,%p,%d,%p).
\n
"
,
argc
,
argv
,
environ
,
expand_wildcards
,
_startupinfo
);
TRACE
(
"(%p,%p,%p,%d,%p).
\n
"
,
argc
,
argv
,
environ
,
expand_wildcards
,
new_mode
);
*
argc
=
MSVCRT___argc
;
*
argv
=
MSVCRT___argv
;
*
environ
=
MSVCRT__environ
;
MSVCRT__set_new_mode
(
*
new_mode
);
}
/*********************************************************************
* __wgetmainargs (MSVCRT.@)
*/
void
__cdecl
MSVCRT___wgetmainargs
(
int
*
argc
,
WCHAR
***
wargv
,
WCHAR
**
wenviron
,
int
expand_wildcards
,
void
*
_startupinfo
)
int
expand_wildcards
,
int
*
new_mode
)
{
TRACE
(
"(%p,%p,%p,%d,%p).
\n
"
,
argc
,
wargv
,
wenviron
,
expand_wildcards
,
_startupinfo
);
TRACE
(
"(%p,%p,%p,%d,%p).
\n
"
,
argc
,
wargv
,
wenviron
,
expand_wildcards
,
new_mode
);
*
argc
=
MSVCRT___argc
;
*
wargv
=
MSVCRT___wargv
;
*
wenviron
=
MSVCRT__wenviron
;
MSVCRT__set_new_mode
(
*
new_mode
);
}
/*********************************************************************
...
...
dlls/msvcrt/msvcrt.h
View file @
3fe81b46
...
...
@@ -34,6 +34,7 @@ typedef struct __MSVCRT_thread_data
((MSVCRT_thread_data*)TlsGetValue(MSVCRT_tls_index))->x = y
void
MSVCRT__set_errno
(
int
);
int
__cdecl
MSVCRT__set_new_mode
(
int
mode
);
int
__cdecl
MSVCRT__fcloseall
(
void
);
void
*
__cdecl
MSVCRT_malloc
(
unsigned
int
);
void
*
__cdecl
MSVCRT_calloc
(
unsigned
int
,
unsigned
int
);
...
...
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