* 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>
|
||||
|
||||
* 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)
|
||||
break;
|
||||
|
||||
PWCHAR name;
|
||||
if (!sys_mbstowcs_alloc (&name, HEAP_BUF, winname))
|
||||
break;
|
||||
WCHAR name[UNLEN + 1];
|
||||
sys_mbstowcs (name, sizeof name, winname);
|
||||
|
||||
cygsid sid;
|
||||
DWORD slen = SECURITY_MAX_SID_SIZE;
|
||||
|
|
Loading…
Reference in New Issue