Andrew Nguyen : kernel32: Remove a superfluous function call in the format_insert helper.

Alexandre Julliard julliard at winehq.org
Wed Apr 28 16:35:47 CDT 2010


Module: wine
Branch: master
Commit: 1d18b890a6f7eefcdc978285e1cc0b57275afb85
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1d18b890a6f7eefcdc978285e1cc0b57275afb85

Author: Andrew Nguyen <anguyen at codeweavers.com>
Date:   Wed Apr 28 04:20:41 2010 -0500

kernel32: Remove a superfluous function call in the format_insert helper.

---

 dlls/kernel32/format_msg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/format_msg.c b/dlls/kernel32/format_msg.c
index a66cb9b..d610573 100644
--- a/dlls/kernel32/format_msg.c
+++ b/dlls/kernel32/format_msg.c
@@ -144,7 +144,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format,
         }
         else
         {
-            char *str = (char *)get_arg( insert, flags, args );
+            char *str = (char *)arg;
             DWORD length = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
             *result = HeapAlloc( GetProcessHeap(), 0, length * sizeof(WCHAR) );
             MultiByteToWideChar( CP_ACP, 0, str, -1, *result, length );




More information about the wine-cvs mailing list