commit | 40cc914567c352ded0fbf51c02a873d8c68287ce | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Mon Jul 07 15:16:47 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Mon Jul 07 16:01:08 2014 +0200 |
tree | 1e649281407c01f3b25ea37eb44950c521802d1e | |
parent | 238be3a2079583538a115c17a600683301e269f5 [diff] [blame] |
Fixed x509_crt_parse_path() bug on Windows platforms
diff --git a/library/x509parse.c b/library/x509parse.c index 26d655f..0e854a2 100644 --- a/library/x509parse.c +++ b/library/x509parse.c
@@ -1915,7 +1915,7 @@ p = filename + len; filename[len++] = '*'; - w_ret = MultiByteToWideChar( CP_ACP, 0, path, len, szDir, MAX_PATH - 3 ); + w_ret = MultiByteToWideChar( CP_ACP, 0, filename, len, szDir, MAX_PATH - 3 ); hFind = FindFirstFileW( szDir, &file_data ); if (hFind == INVALID_HANDLE_VALUE)