DllExporter: Fixed issue with x64 builds.

This commit is contained in:
Brian Ferguson 2014-01-17 22:59:56 -07:00
parent 351fcbce5d
commit aadfc7fc42

View File

@ -195,10 +195,10 @@ namespace DllExporter
/// </summary>
private static string FindIldasmPath()
{
var sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles%\Microsoft SDKs\Windows\");
var sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles(x86)%\Microsoft SDKs\Windows\");
if (!Directory.Exists(sdkPath))
{
sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles(x86)%\Microsoft SDKs\Windows\");
sdkPath = Environment.ExpandEnvironmentVariables(@"%ProgramFiles%\Microsoft SDKs\Windows\");
}
if (!Directory.Exists(sdkPath))