* external.cc (cygwin_internal): Use local name buffer instead of
allocated one in CW_CYGNAME_FROM_WINNAME.
This commit is contained in:
parent
e9eef8ec14
commit
eec106c4ec
|
@ -1,3 +1,8 @@
|
||||||
|
2014-05-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* external.cc (cygwin_internal): Use local name buffer instead of
|
||||||
|
allocated one in CW_CYGNAME_FROM_WINNAME.
|
||||||
|
|
||||||
2014-05-15 Corinna Vinschen <corinna@vinschen.de>
|
2014-05-15 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.
|
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.
|
||||||
|
|
|
@ -650,9 +650,8 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||||
if (!winname || !buffer || !buflen)
|
if (!winname || !buffer || !buflen)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
PWCHAR name;
|
WCHAR name[UNLEN + 1];
|
||||||
if (!sys_mbstowcs_alloc (&name, HEAP_BUF, winname))
|
sys_mbstowcs (name, sizeof name, winname);
|
||||||
break;
|
|
||||||
|
|
||||||
cygsid sid;
|
cygsid sid;
|
||||||
DWORD slen = SECURITY_MAX_SID_SIZE;
|
DWORD slen = SECURITY_MAX_SID_SIZE;
|
||||||
|
|
Loading…
Reference in New Issue