Skip to content

Commit

Permalink
Fix for 2.1.7
Browse files Browse the repository at this point in the history
Fixed a case where no advanced device specific settings were visible
when opening Audio Devices window
  • Loading branch information
Tanel Teede committed Jun 13, 2017
1 parent e08e9e0 commit 9247e64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
8 changes: 0 additions & 8 deletions Classes/Program.cs
Expand Up @@ -27,11 +27,6 @@ internal static class Program
[DllImport("kernel32.dll", SetLastError = true)]
private static extern bool AttachConsole(int dwProcessId);

[DllImport("User32.Dll", EntryPoint = "PostMessageA")]
private static extern bool PostMessage(IntPtr hWnd, uint msg, int wParam, int lParam);
const int VK_RETURN = 0x0D;
const int WM_KEYDOWN = 0x100;

internal static FormOSD frmOSD;
private static bool isConsole;
internal static Settings settings;
Expand Down Expand Up @@ -226,8 +221,6 @@ private static void Main(string[] args)
if (isConsole)
{
SendKeys.SendWait("{ENTER}");
var hWnd = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;
PostMessage(hWnd, WM_KEYDOWN, VK_RETURN, 0);
FreeConsole();
}
}
Expand Down Expand Up @@ -260,4 +253,3 @@ static void CurrentDomainUnhandledException(object sender, UnhandledExceptionEve
}
}
}

2 changes: 1 addition & 1 deletion Forms/FormSwitcher.cs
Expand Up @@ -590,7 +590,7 @@ private void listDevices_Click(object sender, EventArgs e)

private void audioDevicesToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("mmsys.cpl", ",,1");
Process.Start(Environment.ExpandEnvironmentVariables("%WinDir%") + "\\Sysnative\\rundll32.exe", "Shell32.dll,Control_RunDLL Mmsys.cpl,,0");
}
}
}
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.1.6")]
[assembly: AssemblyFileVersion("2.1.6")]
[assembly: AssemblyVersion("2.1.7")]
[assembly: AssemblyFileVersion("2.1.7")]

0 comments on commit 9247e64

Please sign in to comment.