commit | 1a56fc96a375cd5f15dc38f06899069549029f74 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Dec 19 13:51:24 2013 +0100 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Dec 19 13:52:33 2013 +0100 |
tree | 9e7750243d0795dc890fc259b2c8b7dd88ed3429 | |
parent | 1321135758435ef60f0d689153632ceb1fce8ac9 [diff] [blame] |
Fixed x509_crt_parse_path() bug on Windows platforms
diff --git a/library/x509_crt.c b/library/x509_crt.c index 63ab403..8632f71 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c
@@ -967,7 +967,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)