Commit 5051dc17 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

compat: remove shadowing variable

parent 34b68b13
......@@ -37,7 +37,7 @@ char *realpath(const char * restrict relpath, char * restrict resolved_path)
}
#ifdef _WIN32
int len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 );
size_t len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 );
if (len == 0)
return NULL;
......@@ -51,7 +51,7 @@ char *realpath(const char * restrict relpath, char * restrict resolved_path)
free(wrelpath);
if (wfullpath != NULL)
{
size_t len = WideCharToMultiByte( CP_UTF8, 0, wfullpath, -1, NULL, 0, NULL, NULL );
len = WideCharToMultiByte( CP_UTF8, 0, wfullpath, -1, NULL, 0, NULL, NULL );
if (len != 0)
{
if (resolved_path != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment