Bug 1257331 - Use LPWSTR instead of LPVOID to prevent C4477 warning; r=froydnj
authorGregory Szorc <gps@mozilla.com>
Thu, 17 Mar 2016 20:36:06 -0700
changeset 289721 72a2ec038f5366bf1af0ed4426a76851aa2d6aac
parent 289720 960029b66e4c3f02862d00d080a399cf15d00438
child 289722 5dbd76a73f7dccabe1f4d2d8de2448b5ed2109cf
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1257331
milestone48.0a1
Bug 1257331 - Use LPWSTR instead of LPVOID to prevent C4477 warning; r=froydnj MozReview-Commit-ID: 2rJdKhlLtXr
xpcom/glue/standalone/nsXPCOMGlue.cpp
--- a/xpcom/glue/standalone/nsXPCOMGlue.cpp
+++ b/xpcom/glue/standalone/nsXPCOMGlue.cpp
@@ -50,17 +50,17 @@ static LibHandleType
 GetLibHandle(pathstr_t aDependentLib)
 {
   LibHandleType libHandle =
     LoadLibraryExW(aDependentLib, nullptr, LOAD_WITH_ALTERED_SEARCH_PATH);
 
 #ifdef DEBUG
   if (!libHandle) {
     DWORD err = GetLastError();
-    LPVOID lpMsgBuf;
+    LPWSTR lpMsgBuf;
     FormatMessageW(
       FORMAT_MESSAGE_ALLOCATE_BUFFER |
       FORMAT_MESSAGE_FROM_SYSTEM |
       FORMAT_MESSAGE_IGNORE_INSERTS,
       nullptr,
       err,
       MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
       (LPWSTR)&lpMsgBuf,