Mercurial > trustbridge
diff cinst/nssstore_win.c @ 399:55cbe0a482ce
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 16 Apr 2014 10:01:02 +0200 |
parents | 8090a1bc1b5b |
children | 17e1c8f37d72 |
line wrap: on
line diff
--- a/cinst/nssstore_win.c Wed Apr 16 10:00:17 2014 +0200 +++ b/cinst/nssstore_win.c Wed Apr 16 10:01:02 2014 +0200 @@ -98,7 +98,6 @@ for (i = 0; certificates[i]; i++) { int ret = 0; - DEBUGPRINTF("Writing \n"); if (remove) ret = fprintf (write_stream, "R:%s\n", certificates[i]); else @@ -111,7 +110,6 @@ } } - DEBUGPRINTF("Write done\n"); return true; } @@ -155,12 +153,15 @@ restrict token -> hChildToken */ - cmd_line_len = wcslen (lpApplicationName) + wcslen(selection_file) + 1; + cmd_line_len = wcslen (lpApplicationName) + wcslen(selection_file) + 2; lpCommandLine = xmalloc (cmd_line_len * sizeof(wchar_t)); wcscpy_s (lpCommandLine, cmd_line_len, lpApplicationName); + wcscpy_s (lpCommandLine, cmd_line_len, L" "); wcscat_s (lpCommandLine, cmd_line_len, selection_file); + DEBUGPRINTF ("Starting %S with command line %S\n", lpApplicationName, lpCommandLine); + success = CreateProcessAsUserW (hToken, lpApplicationName, lpCommandLine, /* Commandline */