Lines Matching refs:dir_len
178 size_t mb_len, dir_len = 0; in php_win32_ioutil_conv_any_to_w() local
187 dir_len = GetCurrentDirectoryW(0, NULL); in php_win32_ioutil_conv_any_to_w()
188 if (dir_len == 0) { in php_win32_ioutil_conv_any_to_w()
196 if (dir_len + mb_len >= _MAX_PATH) { in php_win32_ioutil_conv_any_to_w()
199 …ret = (wchar_t *) malloc((dir_len + mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + 1) * sizeof(… in php_win32_ioutil_conv_any_to_w()
212 wchar_t *tmp = (wchar_t *) realloc(ret, (dir_len + new_mb_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
229 if (dir_len > 0) { in php_win32_ioutil_conv_any_to_w()
230 size_t len = GetCurrentDirectoryW(dir_len, dst); in php_win32_ioutil_conv_any_to_w()
231 if (len == 0 || len + 1 != dir_len) { in php_win32_ioutil_conv_any_to_w()
248 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + dir_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
250 mb_len += PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + dir_len; in php_win32_ioutil_conv_any_to_w()