Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT r?cpearce draft
authorTom Ritter <tom@mozilla.com>
Mon, 02 Oct 2017 14:28:24 -0500
changeset 674377 39366c8bb16836167ebe64ff6279cea66c8316c9
parent 674376 a37e3178aa74073e87e0aff17bcfa136043c23be
child 674378 e28f27008ea914312b21f79ae5d4f3d55efd6f66
push id82814
push userbmo:tom@mozilla.com
push dateTue, 03 Oct 2017 17:51:18 +0000
reviewerscpearce
bugs1404147
milestone58.0a1
Bug 1404147 Fixed Signed/Unsigned comparison of HRESULT r?cpearce MozReview-Commit-ID: GpOCB2TKGG7
dom/media/fake-cdm/cdm-test-output-protection.h
--- a/dom/media/fake-cdm/cdm-test-output-protection.h
+++ b/dom/media/fake-cdm/cdm-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;