Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT draft
authorTom Ritter <tom@mozilla.com>
Thu, 28 Sep 2017 17:42:28 -0500
changeset 672672 1ddefad2d541317dd58870e733218c0b73889ff0
parent 672671 07d811b3d60f536ddf3d9d045edfa713ff435d60
child 672673 e867fa6a5f37eeebf4e433c9a833cf1ed707ce58
push id82329
push userbmo:tom@mozilla.com
push dateFri, 29 Sep 2017 16:06:00 +0000
bugs1404147
milestone58.0a1
Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT MozReview-Commit-ID: Gn5AGnGivnH
dom/media/gmp-plugin/gmp-test-output-protection.h
--- a/dom/media/gmp-plugin/gmp-test-output-protection.h
+++ b/dom/media/gmp-plugin/gmp-test-output-protection.h
@@ -37,17 +37,17 @@ static BOOL CALLBACK EnumDisplayMonitors
 
   ULONG numVideoOutputs = 0;
   IOPMVideoOutput** opmVideoOutputArray = nullptr;
   HRESULT hr = sOPMGetVideoOutputsFromHMONITORProc(hMonitor,
                                                    OPM_VOS_OPM_SEMANTICS,
                                                    &numVideoOutputs,
                                                    &opmVideoOutputArray);
   if (S_OK != hr) {
-    if (0x8007001f != hr && 0x80070032 != hr && 0xc02625e5 != hr) {
+    if ((HRESULT)0x8007001f != hr && (HRESULT)0x80070032 != hr && (HRESULT)0xc02625e5 != hr) {
       char msg[100];
       sprintf(msg, "FAIL OPMGetVideoOutputsFromHMONITOR call failed: HRESULT=0x%08x", hr);
       failureMsgs->push_back(msg);
     }
     return true;
   }
 
   DISPLAY_DEVICEA dd;