* dll_init.cc (dll_list::alloc): Take long UNC paths into account.
This commit is contained in:
parent
1809b65e23
commit
26e603454f
|
@ -1,3 +1,7 @@
|
||||||
|
2012-07-02 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* dll_init.cc (dll_list::alloc): Take long UNC paths into account.
|
||||||
|
|
||||||
2012-07-01 Christopher Faylor <me.cygwin2012@cgf.cx>
|
2012-07-01 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
* Makefile.in: Add some more optimization flags for cygwait, malloc and
|
* Makefile.in: Add some more optimization flags for cygwait, malloc and
|
||||||
|
|
|
@ -180,7 +180,14 @@ dll_list::alloc (HINSTANCE h, per_process *p, dll_type type)
|
||||||
GetModuleFileNameW (h, buf, sizeof (buf));
|
GetModuleFileNameW (h, buf, sizeof (buf));
|
||||||
PWCHAR name = buf;
|
PWCHAR name = buf;
|
||||||
if (!wcsncmp (name, L"\\\\?\\", 4))
|
if (!wcsncmp (name, L"\\\\?\\", 4))
|
||||||
name += 4;
|
{
|
||||||
|
name += 4;
|
||||||
|
if (!wcsncmp (name, L"UNC\\", 4))
|
||||||
|
{
|
||||||
|
name += 2;
|
||||||
|
*name = L'\\';
|
||||||
|
}
|
||||||
|
}
|
||||||
DWORD namelen = wcslen (name);
|
DWORD namelen = wcslen (name);
|
||||||
PWCHAR modname = wcsrchr (name, L'\\') + 1;
|
PWCHAR modname = wcsrchr (name, L'\\') + 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue