Bug 248044. Fix login capture on 64 bit windows.
This commit is contained in:
		
							
								
								
									
										2
									
								
								CASA/micasad/cache/SecretStore.cs
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								CASA/micasad/cache/SecretStore.cs
									
									
									
									
										vendored
									
									
								
							| @@ -946,6 +946,8 @@ namespace sscs.cache | |||||||
| #else | #else | ||||||
|             string sNewPath = GetUserHomeDirectory() + "\\CASA"; |             string sNewPath = GetUserHomeDirectory() + "\\CASA"; | ||||||
|  |  | ||||||
|  |             System.Diagnostics.Trace.WriteLine("Migrate files to " + sNewPath); | ||||||
|  |  | ||||||
|             if (!Directory.Exists(sNewPath)) |             if (!Directory.Exists(sNewPath)) | ||||||
|             { |             { | ||||||
|                 Directory.CreateDirectory(sNewPath); |                 Directory.CreateDirectory(sNewPath); | ||||||
|   | |||||||
| @@ -117,6 +117,15 @@ namespace sscs.init | |||||||
| 		private static string GetCredMgrPath() | 		private static string GetCredMgrPath() | ||||||
| 		{ | 		{ | ||||||
| 			string sPath = Environment.GetEnvironmentVariable("ProgramFiles"); | 			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) | 			if (sPath != null) | ||||||
| 			{ | 			{ | ||||||
| 				// look for regsvr32.exe | 				// look for regsvr32.exe | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user