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
57915f50
Commit
57915f50
authored
Mar 15, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Mar 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented __p__pgmptr, _pgmptr.
parent
59182a92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
data.c
dlls/msvcrt/data.c
+11
-2
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+2
-2
No files found.
dlls/msvcrt/data.c
View file @
57915f50
...
...
@@ -62,6 +62,8 @@ char **MSVCRT___initenv = 0;
MSVCRT_wchar_t
**
MSVCRT___winitenv
=
0
;
int
MSVCRT_timezone
;
int
MSVCRT_app_type
;
char
MSVCRT_pgm
[
MAX_PATH
];
char
*
MSVCRT__pgmptr
=
0
;
/* Get a snapshot of the current environment
* and construct the __p__environ array
...
...
@@ -147,6 +149,12 @@ int* __p___argc(void) { return &MSVCRT___argc; }
*/
unsigned
int
*
__p__commode
(
void
)
{
return
&
MSVCRT__commode
;
}
/***********************************************************************
* __p__pgmptr (MSVCRT.@)
*/
char
**
__p__pgmptr
(
void
)
{
return
&
MSVCRT__pgmptr
;
}
/***********************************************************************
* __p__fmode (MSVCRT.@)
*/
...
...
@@ -273,11 +281,12 @@ void msvcrt_init_args(void)
MSVCRT___unguarded_readlc_active
=
0
;
MSVCRT_timezone
=
0
;
/* FIXME: set app type for Winelib apps */
MSVCRT___initenv
=
msvcrt_SnapshotOfEnvironmentA
(
NULL
);
MSVCRT___winitenv
=
msvcrt_SnapshotOfEnvironmentW
(
NULL
);
MSVCRT_pgm
[
0
]
=
'\0'
;
GetModuleFileNameA
(
0
,
MSVCRT_pgm
,
sizeof
(
MSVCRT_pgm
)
/
sizeof
(
MSVCRT_pgm
[
0
]));
MSVCRT__pgmptr
=
MSVCRT_pgm
;
}
...
...
dlls/msvcrt/msvcrt.spec
View file @
57915f50
...
...
@@ -119,7 +119,7 @@
@ cdecl __p__mbctype() __p__mbctype
@ cdecl __p__osver() __p__osver
@ cdecl __p__pctype() __p__pctype
@
stub __p__pgmptr #()
@
cdecl __p__pgmptr() __p__pgmptr
@ stub __p__pwctype #()
@ cdecl __p__timezone() __p__timezone
@ stub __p__tzname #()
...
...
@@ -402,7 +402,7 @@
@ stub _outpw #(long long)
@ stub _pclose #(ptr)
@ extern _pctype MSVCRT__pctype
@
stub
_pgmptr
@
extern _pgmptr MSVCRT_
_pgmptr
@ stub _pipe #(ptr long long)
@ stub _popen #(str str)
@ cdecl _purecall() _purecall
...
...
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