mirror of
https://github.com/curl/curl.git
synced 2026-08-02 10:30:28 +03:00
curlx: use curl alloc in curlx_win32_stat() (Windows)
It's safe because we do not call `curlx_win32_stat()` from memdebug.c. Closes #20043
This commit is contained in:
parent
c0d8fedb49
commit
e157638981
1 changed files with 2 additions and 2 deletions
|
|
@ -367,14 +367,14 @@ int curlx_win32_stat(const char *path, struct_stat *buffer)
|
|||
const TCHAR *target = NULL;
|
||||
|
||||
#ifdef _UNICODE
|
||||
wchar_t *path_w = fn_convert_UTF8_to_wchar(path);
|
||||
wchar_t *path_w = curlx_convert_UTF8_to_wchar(path);
|
||||
if(path_w) {
|
||||
if(fix_excessive_path(path_w, &fixed))
|
||||
target = fixed;
|
||||
else
|
||||
target = path_w;
|
||||
result = _wstati64(target, buffer);
|
||||
CURLX_FREE(path_w);
|
||||
curlx_free(path_w);
|
||||
}
|
||||
else
|
||||
/* !checksrc! disable ERRNOVAR 1 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue