Bug 978177 - Modify PoisonIOInterposerWin functions that accept UNICODE_STRING to use nsDependentSubstring instead of nsDependentString. r=bsmedberg, a=sledru
authorAaron Klotz <aklotz@mozilla.com>
Fri, 28 Feb 2014 13:12:38 -0700
changeset 183300 01934b65d701af6e654f579ea9c72171e628d7f5
parent 183299 9e69bab41406e920d7db3256b0416dac016308a6
child 183301 634396e2442aa1d5cddad93d5a5b5c5f29d40b8e
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg, sledru
bugs978177
milestone29.0a2
Bug 978177 - Modify PoisonIOInterposerWin functions that accept UNICODE_STRING to use nsDependentSubstring instead of nsDependentString. r=bsmedberg, a=sledru
xpcom/build/PoisonIOInterposerWin.cpp
--- a/xpcom/build/PoisonIOInterposerWin.cpp
+++ b/xpcom/build/PoisonIOInterposerWin.cpp
@@ -245,17 +245,17 @@ static NTSTATUS NTAPI InterposedNtCreate
 {
   // Report IO
   char16_t* buf = aObjectAttributes ?
                     aObjectAttributes->ObjectName->Buffer :
                     MOZ_UTF16("");
   uint32_t len = aObjectAttributes ?
                    aObjectAttributes->ObjectName->Length / sizeof(WCHAR) :
                    0;
-  nsDependentString filename(buf, len);
+  nsDependentSubstring filename(buf, len);
   WinIOAutoObservation timer(IOInterposeObserver::OpCreateOrOpen, filename);
 
   // Something is badly wrong if this function is undefined
   MOZ_ASSERT(gOriginalNtCreateFile);
 
   // Execute original function
   return gOriginalNtCreateFile(
     aFileHandle,
@@ -424,17 +424,17 @@ static NTSTATUS NTAPI InterposedNtQueryF
 {
   // Report IO
   char16_t* buf = aObjectAttributes ?
                     aObjectAttributes->ObjectName->Buffer :
                     MOZ_UTF16("");
   uint32_t len = aObjectAttributes ?
                    aObjectAttributes->ObjectName->Length / sizeof(WCHAR) :
                    0;
-  nsDependentString filename(buf, len);
+  nsDependentSubstring filename(buf, len);
   WinIOAutoObservation timer(IOInterposeObserver::OpStat, filename);
 
   // Something is badly wrong if this function is undefined
   MOZ_ASSERT(gOriginalNtQueryFullAttributesFile);
 
   // Execute original function
   return gOriginalNtQueryFullAttributesFile(
     aObjectAttributes,