libfreerdp-crypto: fix local directory creation

This commit is contained in:
Marc-André Moreau 2013-03-27 20:10:18 -04:00
parent 8b9ea43d78
commit e4e0b05784

View File

@ -44,9 +44,15 @@ void certificate_store_init(rdpCertificateStore* certificate_store)
settings = certificate_store->settings;
if (!PathFileExistsA(settings->ConfigPath))
{
CreateDirectoryA(settings->ConfigPath, 0);
printf("creating directory %s\n", settings->ConfigPath);
}
certificate_store->path = GetCombinedPath(settings->ConfigPath, (char*) certificate_store_dir);
if (PathFileExistsA(certificate_store->path) == FALSE)
if (!PathFileExistsA(certificate_store->path))
{
CreateDirectoryA(certificate_store->path, 0);
printf("creating directory %s\n", certificate_store->path);