[HELP][SHUTDOWN]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 26 May 2014 13:48:49 +0000 (13:48 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 26 May 2014 13:48:49 +0000 (13:48 +0000)
* Use vfwprintf instead of _vcwprintf which shouldn't be exported.
CORE-8174

svn path=/trunk/; revision=63463

reactos/base/applications/cmdutils/help/help.c
reactos/base/applications/shutdown/shutdown.c

index 2a2b67c..668e930 100644 (file)
@@ -56,7 +56,7 @@ VOID PrintResourceString(INT resID, ...)
     // FIXME: Optimize by using Win32 console functions.
     if (IsConsoleHandle(OutputHandle))
     {
-        _vcwprintf(tmpBuffer, arg_ptr);
+        vfwprintf(stdout, tmpBuffer, arg_ptr);
     }
     else
     {
index 37942e5..b162d7a 100644 (file)
@@ -22,7 +22,7 @@ VOID PrintResourceString(INT resID, ...)
 
     va_start(arg_ptr, resID);
     LoadStringW(GetModuleHandle(NULL), resID, tmpBuffer, MAX_BUFFER_SIZE);
-    _vcwprintf(tmpBuffer, arg_ptr);
+    vfwprintf(stdout, tmpBuffer, arg_ptr);
     va_end(arg_ptr);
 }