Bug 815359 - Use the correct contract ID to create nsISupportsPRUint32's in the icon decoder; r=bzbarsky a=lsblakk
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 27 Nov 2012 21:07:01 -0500
changeset 110384 535035b8cb252602dd822cbd14c0d7b1b3a2e857
parent 110383 7ed2ba689d4e024d416ebc86fa66110d1e53a42e
child 110385 2afd813ee4542bf9d5b8d3c3e7633cb0e3a3e2d2
push id229
push usereakhgari@mozilla.com
push dateWed, 28 Nov 2012 02:45:44 +0000
treeherdermozilla-release@535035b8cb25 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky, lsblakk
bugs815359
milestone17.0
Bug 815359 - Use the correct contract ID to create nsISupportsPRUint32's in the icon decoder; r=bzbarsky a=lsblakk
image/decoders/nsICODecoder.cpp
--- a/image/decoders/nsICODecoder.cpp
+++ b/image/decoders/nsICODecoder.cpp
@@ -207,19 +207,19 @@ nsICODecoder::ExtractBIHSizeFromBitmap(i
 
 void
 nsICODecoder::SetHotSpotIfCursor() {
   if (!mIsCursor) {
     return;
   }
 
   nsCOMPtr<nsISupportsPRUint32> intwrapx = 
-    do_CreateInstance("@mozilla.org/supports-uint32_t;1");
+    do_CreateInstance("@mozilla.org/supports-PRUint32;1");
   nsCOMPtr<nsISupportsPRUint32> intwrapy = 
-    do_CreateInstance("@mozilla.org/supports-uint32_t;1");
+    do_CreateInstance("@mozilla.org/supports-PRUint32;1");
 
   if (intwrapx && intwrapy) {
     intwrapx->SetData(mDirEntry.mXHotspot);
     intwrapy->SetData(mDirEntry.mYHotspot);
 
     mImage.Set("hotspotX", intwrapx);
     mImage.Set("hotspotY", intwrapy);
   }