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

This commit is contained in:
Nikolaj Olsson 2017-01-16 16:24:22 +01:00
parent e93aaf4daa
commit b06d03d93e
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -242,7 +242,8 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers.MpcHC
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;
}