Bug 759061 - nsINIParser.cpp fails to compile on mingw r=tabraldes

This commit is contained in:
Jacek Caban
2012-05-31 16:09:36 +02:00
parent a7aeeac80b
commit ac619a715f

View File

@@ -158,7 +158,7 @@ nsINIParser::InitFromFILE(FILE *fd)
return NS_ERROR_FAILURE;
}
nsAutoArrayPtr<char> utf8Buffer = new char[flen];
nsAutoArrayPtr<char> utf8Buffer(new char[flen]);
if (0 == WideCharToMultiByte(CP_UTF8,
0,
reinterpret_cast<LPWSTR>(buffer),