Bug 1151318 - Fixed wchar_t/char16_t mismatch on mingw.

This commit is contained in:
Jacek Caban 2015-06-11 13:12:11 +02:00
parent 6d45eb2267
commit f7d1d49def

View File

@ -1768,7 +1768,7 @@ PluginInstanceChild::SetCaptureHook(HWND aHwnd)
wchar_t className[256] = {0};
int numChars = GetClassNameW(aHwnd, className, ArrayLength(className));
NS_NAMED_LITERAL_STRING(unityClassName, "Unity.WebPlayer");
if (numChars == unityClassName.Length() && unityClassName == className) {
if (numChars == unityClassName.Length() && unityClassName == wwc(className)) {
sSetCaptureHookData = new SetCaptureHookData(aHwnd);
}
return sUser32SetCaptureHookStub(aHwnd);