"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msvcrt/environ.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

environ.c  (wine-5.12.tar.xz):environ.c  (wine-5.13.tar.xz)
skipping to change at line 66 skipping to change at line 66
unsigned int length=strlenW(name); unsigned int length=strlenW(name);
/* Initialize the _wenviron array if it's not already created. */ /* Initialize the _wenviron array if it's not already created. */
if (!MSVCRT__wenviron) if (!MSVCRT__wenviron)
MSVCRT__wenviron = msvcrt_SnapshotOfEnvironmentW(NULL); MSVCRT__wenviron = msvcrt_SnapshotOfEnvironmentW(NULL);
for (environ = MSVCRT__wenviron; *environ; environ++) for (environ = MSVCRT__wenviron; *environ; environ++)
{ {
MSVCRT_wchar_t *str = *environ; MSVCRT_wchar_t *str = *environ;
MSVCRT_wchar_t *pos = strchrW(str,'='); MSVCRT_wchar_t *pos = strchrW(str,'=');
if (pos && ((pos - str) == length) && !strncmpiW(str,name,length)) if (pos && ((pos - str) == length) && !MSVCRT__wcsnicmp(str,name,length) )
{ {
TRACE("(%s): got %s\n", debugstr_w(name), debugstr_w(pos + 1)); TRACE("(%s): got %s\n", debugstr_w(name), debugstr_w(pos + 1));
return pos + 1; return pos + 1;
} }
} }
return NULL; return NULL;
} }
/********************************************************************* /*********************************************************************
* _putenv (MSVCRT.@) * _putenv (MSVCRT.@)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)