mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
tsrm_realpath_r for win32 mountpoints copy little optimisations. (#14852)
This commit is contained in:
parent
9e94d2b040
commit
479707b4d3
@ -713,7 +713,7 @@ retry_reparse_tag_cloud:
|
||||
FREE_PATHW()
|
||||
return (size_t)-1;
|
||||
}
|
||||
memmove(tmpsubstname, reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR), pbuffer->MountPointReparseBuffer.SubstituteNameLength);
|
||||
memcpy(tmpsubstname, reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR), pbuffer->MountPointReparseBuffer.SubstituteNameLength);
|
||||
tmpsubstname[substitutename_len] = L'\0';
|
||||
substitutename = php_win32_cp_conv_w_to_any(tmpsubstname, substitutename_len, &substitutename_len);
|
||||
if (!substitutename || substitutename_len >= MAXPATHLEN) {
|
||||
@ -748,7 +748,7 @@ retry_reparse_tag_cloud:
|
||||
FREE_PATHW()
|
||||
return (size_t)-1;
|
||||
}
|
||||
memmove(tmpsubstname, reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR), pbuffer->MountPointReparseBuffer.SubstituteNameLength);
|
||||
memcpy(tmpsubstname, reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR), pbuffer->MountPointReparseBuffer.SubstituteNameLength);
|
||||
tmpsubstname[substitutename_len] = L'\0';
|
||||
substitutename = php_win32_cp_conv_w_to_any(tmpsubstname, substitutename_len, &substitutename_len);
|
||||
if (!substitutename || substitutename_len >= MAXPATHLEN) {
|
||||
|
Loading…
Reference in New Issue
Block a user