Bug 1392609 Find returns an int32_t not a uint32_t draft
authorTom Ritter <tom@mozilla.com>
Tue, 22 Aug 2017 06:21:09 -0500
changeset 650469 75f6d5b97e491ab53a532f619cbcd0c0f5c243ff
parent 650468 0d3e3112c42b734ec016a3ae4b9d666f169ecd2a
child 650470 46fbd69b0e59ee3a3bfeba6892ef099a454736db
push id75407
push userbmo:tom@mozilla.com
push dateTue, 22 Aug 2017 13:34:32 +0000
bugs1392609
milestone57.0a1
Bug 1392609 Find returns an int32_t not a uint32_t MozReview-Commit-ID: 8jBe7CGbAvM
xpcom/io/nsLocalFileWin.cpp
old mode 100644
new mode 100755
--- a/xpcom/io/nsLocalFileWin.cpp
+++ b/xpcom/io/nsLocalFileWin.cpp
@@ -1200,17 +1200,17 @@ CleanupHandlerPath(nsString& aPath)
 
   int32_t lastCommaPos = aPath.RFindChar(',');
   if (lastCommaPos != kNotFound)
     aPath.Truncate(lastCommaPos);
 
   aPath.Append(' ');
 
   // case insensitive
-  uint32_t index = aPath.Find(".exe ", true);
+  int32_t index = aPath.Find(".exe ", true);
   if (index == kNotFound)
     index = aPath.Find(".dll ", true);
   if (index == kNotFound)
     index = aPath.Find(".cpl ", true);
 
   if (index != kNotFound)
     aPath.Truncate(index + 4);
   aPath.Trim(" ", true, true);