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 655107 24e9200ad4a6a38761d92e2fafbea2ca51596bd0
parent 655106 7d5580ce2df0193e9218d4aa9c857f4c57b90d44
child 655108 e4760c170e7541ef6624675080fa9e85201a275b
push id76778
push userbmo:tom@mozilla.com
push dateTue, 29 Aug 2017 17:35:26 +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);