changeset 826:4aa33c408776

Remove TODO windows gracefully handles the case where the data directory is not accessible.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 21 Jul 2014 18:53:13 +0200
parents 24e1e47e2d1a
children 8de162b91a22
files cinst/nssstore_win.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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 */

http://wald.intevation.org/projects/trustbridge/