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
7c15ae12
Commit
7c15ae12
authored
Oct 05, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add an MSVCRT prefix to _wenviron.
parent
2326f3d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
11 deletions
+11
-11
data.c
dlls/msvcrt/data.c
+5
-5
environ.c
dlls/msvcrt/environ.c
+4
-4
msvcrt.h
dlls/msvcrt/msvcrt.h
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
No files found.
dlls/msvcrt/data.c
View file @
7c15ae12
...
...
@@ -51,7 +51,7 @@ MSVCRT_wchar_t **MSVCRT___wargv = NULL;
char
*
MSVCRT__acmdln
=
NULL
;
MSVCRT_wchar_t
*
MSVCRT__wcmdln
=
NULL
;
char
**
MSVCRT__environ
=
NULL
;
MSVCRT_wchar_t
**
_wenviron
=
NULL
;
MSVCRT_wchar_t
**
MSVCRT_
_wenviron
=
NULL
;
char
**
MSVCRT___initenv
=
NULL
;
MSVCRT_wchar_t
**
MSVCRT___winitenv
=
NULL
;
int
MSVCRT_app_type
=
0
;
...
...
@@ -213,9 +213,9 @@ char*** CDECL __p__environ(void)
*/
MSVCRT_wchar_t
***
CDECL
__p__wenviron
(
void
)
{
if
(
!
_wenviron
)
_wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
NULL
);
return
&
_wenviron
;
if
(
!
MSVCRT_
_wenviron
)
MSVCRT_
_wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
NULL
);
return
&
MSVCRT_
_wenviron
;
}
/*********************************************************************
...
...
@@ -325,7 +325,7 @@ void msvcrt_free_args(void)
HeapFree
(
GetProcessHeap
(),
0
,
MSVCRT___initenv
);
HeapFree
(
GetProcessHeap
(),
0
,
MSVCRT___winitenv
);
HeapFree
(
GetProcessHeap
(),
0
,
MSVCRT__environ
);
HeapFree
(
GetProcessHeap
(),
0
,
_wenviron
);
HeapFree
(
GetProcessHeap
(),
0
,
MSVCRT_
_wenviron
);
HeapFree
(
GetProcessHeap
(),
0
,
MSVCRT__pgmptr
);
HeapFree
(
GetProcessHeap
(),
0
,
MSVCRT__wpgmptr
);
}
...
...
dlls/msvcrt/environ.c
View file @
7c15ae12
...
...
@@ -107,8 +107,8 @@ int CDECL _putenv(const char *str)
/* Update the __p__environ array only when already initialized */
if
(
MSVCRT__environ
)
MSVCRT__environ
=
msvcrt_SnapshotOfEnvironmentA
(
MSVCRT__environ
);
if
(
_wenviron
)
_wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
_wenviron
);
if
(
MSVCRT_
_wenviron
)
MSVCRT__wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
MSVCRT_
_wenviron
);
finish:
HeapFree
(
GetProcessHeap
(),
0
,
name
);
...
...
@@ -153,8 +153,8 @@ int CDECL _wputenv(const MSVCRT_wchar_t *str)
/* Update the __p__environ array only when already initialized */
if
(
MSVCRT__environ
)
MSVCRT__environ
=
msvcrt_SnapshotOfEnvironmentA
(
MSVCRT__environ
);
if
(
_wenviron
)
_wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
_wenviron
);
if
(
MSVCRT_
_wenviron
)
MSVCRT__wenviron
=
msvcrt_SnapshotOfEnvironmentW
(
MSVCRT_
_wenviron
);
finish:
HeapFree
(
GetProcessHeap
(),
0
,
name
);
...
...
dlls/msvcrt/msvcrt.h
View file @
7c15ae12
...
...
@@ -131,7 +131,7 @@ void __cdecl _purecall(void);
void
__cdecl
_amsg_exit
(
int
errnum
);
extern
char
**
MSVCRT__environ
;
extern
MSVCRT_wchar_t
**
_wenviron
;
extern
MSVCRT_wchar_t
**
MSVCRT_
_wenviron
;
extern
char
**
msvcrt_SnapshotOfEnvironmentA
(
char
**
);
extern
MSVCRT_wchar_t
**
msvcrt_SnapshotOfEnvironmentW
(
MSVCRT_wchar_t
**
);
...
...
dlls/msvcrt/msvcrt.spec
View file @
7c15ae12
...
...
@@ -550,7 +550,7 @@
@ cdecl _wctime(ptr) MSVCRT__wctime
@ cdecl _wctime32(ptr) MSVCRT__wctime32
@ cdecl _wctime64(ptr) MSVCRT__wctime64
@ extern _wenviron
@ extern _wenviron
MSVCRT__wenviron
@ varargs _wexecl(wstr wstr)
@ varargs _wexecle(wstr wstr)
@ varargs _wexeclp(wstr wstr)
...
...
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