# HG changeset patch # User Andre Heinecke # Date 1405961593 -7200 # Node ID 4aa33c408776ef259c1eba5547000b48d57af954 # Parent 24e1e47e2d1aa00a67d116793173038533798f92 Remove TODO windows gracefully handles the case where the data directory is not accessible. diff -r 24e1e47e2d1a -r 4aa33c408776 cinst/nssstore_win.c --- a/cinst/nssstore_win.c Mon Jul 21 18:52:41 2014 +0200 +++ b/cinst/nssstore_win.c Mon Jul 21 18:53:13 2014 +0200 @@ -910,7 +910,7 @@ * * If the process is running elevated the instructions are * written to the global ProgramData directory otherwise - * they are written in the temporary directory of the current user. + * they are written in the directory of the current user. * * If the return value is not NULL it needs to be freed by the caller. * The returned path will contain backslashes as directory seperators. @@ -924,16 +924,10 @@ { wchar_t *folder_name = NULL, *path = NULL; - bool elevated = is_elevated(); HRESULT result = E_FAIL; HANDLE hFile = NULL; size_t path_len; - if (!elevated) - { - /* TODO */ - } - result = SHGetKnownFolderPath (&FOLDERID_ProgramData, /* Get program data dir */ KF_FLAG_CREATE | /* Create if it does not exist */ KF_FLAG_INIT, /* Initialize it if created */