mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix bug parsing environment block (mingw32)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21958 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
99fe141f56
commit
0ba8da335b
1 changed files with 8 additions and 7 deletions
|
@ -210,7 +210,7 @@ _gnu_process_args(int argc, char *argv[], char *env[])
|
|||
}
|
||||
else
|
||||
{
|
||||
#ifdef __MINGW32__
|
||||
#if defined(__MINGW32__)
|
||||
unichar *buffer;
|
||||
int buffer_size = 0;
|
||||
int needed_size = 0;
|
||||
|
@ -289,20 +289,21 @@ _gnu_process_args(int argc, char *argv[], char *env[])
|
|||
NSMutableArray *keys = [NSMutableArray new];
|
||||
NSMutableArray *values = [NSMutableArray new];
|
||||
|
||||
#if 0 && defined(__MINGW32__)
|
||||
#if defined(__MINGW32__)
|
||||
unichar *base;
|
||||
|
||||
base = (unichar*)GetEnvironmentStringsW();
|
||||
base = GetEnvironmentStringsW();
|
||||
if (base != 0)
|
||||
{
|
||||
const unichar *start = base;
|
||||
const unichar *wenvp = start;
|
||||
const unichar *wenvp = base;
|
||||
|
||||
while (*wenvp != 0)
|
||||
{
|
||||
NSString *key;
|
||||
NSString *val;
|
||||
const unichar *start = wenvp;
|
||||
NSString *key;
|
||||
NSString *val;
|
||||
|
||||
start = wenvp;
|
||||
while (*wenvp != '=' && *wenvp != 0)
|
||||
{
|
||||
wenvp++;
|
||||
|
|
Loading…
Reference in a new issue