Bug 978177: Modify PoisonIOInterposerWin functions that accept UNICODE_STRING to use nsDependentSubstring instead of nsDependentString; r=bsmedberg
authorAaron Klotz <aklotz@mozilla.com>
Fri, 28 Feb 2014 13:12:38 -0700
changeset 171246 d82096b00f8a9c6b55c4bb28518d7a045da0c8f7
parent 171245 4895aa1f1ee50b434c3f3d6ff86bc64d164511c5
child 171247 68cb672eba846cb65100f32ef891e26897d38841
push id40419
push useraklotz@mozilla.com
push dateFri, 28 Feb 2014 20:23:38 +0000
treeherdermozilla-inbound@d82096b00f8a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs978177
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 978177: Modify PoisonIOInterposerWin functions that accept UNICODE_STRING to use nsDependentSubstring instead of nsDependentString; r=bsmedberg
xpcom/build/PoisonIOInterposerWin.cpp
--- a/xpcom/build/PoisonIOInterposerWin.cpp
+++ b/xpcom/build/PoisonIOInterposerWin.cpp
@@ -245,17 +245,17 @@ static NTSTATUS NTAPI InterposedNtCreate
 {
   // Report IO
   const wchar_t* buf = aObjectAttributes ?
                          aObjectAttributes->ObjectName->Buffer :
                          L"";
   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
   const wchar_t* buf = aObjectAttributes ?
                          aObjectAttributes->ObjectName->Buffer :
                          L"";
   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,