Fixed x509_crt_parse_path() bug on Windows platforms

This commit is contained in:
Paul Bakker 2013-12-19 13:51:24 +01:00
parent 1321135758
commit 1a56fc96a3
2 changed files with 2 additions and 1 deletions

View file

@ -967,7 +967,7 @@ int x509_crt_parse_path( x509_crt *chain, const char *path )
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)