Permalink
Browse files

Fix for MPC-HC 32-bit - thx ZoneX :)

  • Loading branch information...
niksedk committed Jan 16, 2017
1 parent e93aaf4 commit b06d03d93eab8a42fc4d1c57413de9bb10520eed
Showing with 3 additions and 1 deletion.
  1. +1 −0 Changelog.txt
  2. +2 −1 src/Logic/VideoPlayers/MpcHC/MpcHc.cs
View
@@ -15,6 +15,7 @@
* Fixed bug in spell check "change word" regarding "¿?" - thx locotus
* Fixed fast forward waveform scrolling with mouse wheel
* Fix in "Fix common errors" regarding de-selected fixes - thx Tronar
+ * Fix for MPC-HC 32-bit - thx ZoneX
3.5.1 (13th December 2016)
@@ -242,7 +242,8 @@ private static bool IsWindowMpcHcVideo(IntPtr hWnd)
var className = new StringBuilder(256);
int returnCode = NativeMethods.GetClassName(hWnd, className, className.Capacity); // Get the window class name
if (returnCode != 0)
- return (className.ToString().EndsWith(":b:0000000000010003:0000000000000006:0000000000000000")); // MPC-HC video class???
+ return className.ToString().EndsWith(":b:0000000000010003:0000000000000006:0000000000000000") || // MPC-HC 64-bit video class???
+ className.ToString().EndsWith(":b:00010003:00000006:00000000"); // MPC-HC 32-bit video class???
return false;
}

0 comments on commit b06d03d

Please sign in to comment.