Bug 248044. Fix login capture on 64 bit windows.
This commit is contained in:
parent
960af8b1d5
commit
5b7948b5d2
2
CASA/micasad/cache/SecretStore.cs
vendored
2
CASA/micasad/cache/SecretStore.cs
vendored
@ -946,6 +946,8 @@ namespace sscs.cache
|
||||
#else
|
||||
string sNewPath = GetUserHomeDirectory() + "\\CASA";
|
||||
|
||||
System.Diagnostics.Trace.WriteLine("Migrate files to " + sNewPath);
|
||||
|
||||
if (!Directory.Exists(sNewPath))
|
||||
{
|
||||
Directory.CreateDirectory(sNewPath);
|
||||
|
@ -117,6 +117,15 @@ namespace sscs.init
|
||||
private static string GetCredMgrPath()
|
||||
{
|
||||
string sPath = Environment.GetEnvironmentVariable("ProgramFiles");
|
||||
|
||||
// are we on x64?
|
||||
if (sPath.IndexOf("x86") > 0)
|
||||
{
|
||||
sPath = Environment.GetEnvironmentVariable("SystemDrive") + "\\Program Files";
|
||||
}
|
||||
|
||||
System.Diagnostics.Trace.WriteLine("System Path is " + sPath);
|
||||
|
||||
if (sPath != null)
|
||||
{
|
||||
// look for regsvr32.exe
|
||||
|
Loading…
Reference in New Issue
Block a user