Author: hbelusca Date: Fri Oct 7 20:44:15 2016 New Revision: 72929
URL: http://svn.reactos.org/svn/reactos?rev=72929&view=rev Log: Fix build.
Modified: trunk/reactos/base/system/subst/subst.c
Modified: trunk/reactos/base/system/subst/subst.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/subst/subst.c?r... ============================================================================== --- trunk/reactos/base/system/subst/subst.c [iso-8859-1] (original) +++ trunk/reactos/base/system/subst/subst.c [iso-8859-1] Fri Oct 7 20:44:15 2016 @@ -24,7 +24,7 @@
VOID PrintError(IN DWORD ErrCode) { - DWORD dwLength = 0; + // DWORD dwLength = 0; PWSTR pMsgBuf = NULL;
#if 0 @@ -33,13 +33,14 @@ #endif
/* Retrieve the message string without appending extra newlines */ - dwLength = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | - FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK, - NULL, - ErrCode, - LANG_USER_DEFAULT, - (PWSTR)&pMsgBuf, - 0, NULL); + // dwLength = + FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | + FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_MAX_WIDTH_MASK, + NULL, + ErrCode, + LANG_USER_DEFAULT, + (PWSTR)&pMsgBuf, + 0, NULL); if (pMsgBuf /* && dwLength */) { ConResPrintf(StdErr, IDS_FAILED_WITH_ERRORCODE,