1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-09-03 01:21:16 +03:00
This commit is contained in:
Thomas Davis
2013-10-09 18:07:10 -04:00
parent 6cf7b20eba
commit f006a81d3e

View File

@@ -344,7 +344,7 @@ static void verify_existence(char **options, const char *option_name,
struct stat st;
const char *path = get_option(options, option_name);
#ifdef _WIN32
#ifdef _WIN32
wchar_t wbuf[1024];
char mbbuf[1024];
int len;
@@ -356,7 +356,7 @@ static void verify_existence(char **options, const char *option_name,
wcstombs(mbbuf, wbuf, sizeof(mbbuf)-1);
path = mbbuf;
}
#endif
#endif
if (path != NULL && (stat(path, &st) != 0 ||
((S_ISDIR(st.st_mode) ? 1 : 0) != must_be_dir))) {