Browse Source

realpath: use the proper type returned by MultiByteToWideChar()

pull/143/head
Steve Lhomme 3 years ago
parent
commit
a81b06bf92
  1. 2
      compat/realpath.c

2
compat/realpath.c

@ -37,7 +37,7 @@ char *realpath(const char * restrict relpath, char * restrict resolved_path)
}
#ifdef _WIN32
size_t len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 );
int len = MultiByteToWideChar( CP_UTF8, 0, relpath, -1, NULL, 0 );
if (len == 0)
return NULL;

Loading…
Cancel
Save