kernel32: [1/4] Display correct Parameter in a TRACE:
GetDefaultCommConfig
Detlef Riekenberg
wine.dev at web.de
Tue Feb 20 09:38:13 CST 2007
kernel32: Display correct Parameter in a TRACE: GetDefaultCommConfig
The third parameter is LPDWORD => use %p
--
By by ... Detlef
-------------- next part --------------
>From 944b1cdcd329b3fe10f2969a4c4120d69914b001 Mon Sep 17 00:00:00 2001
From: Detlef Riekenberg <wine.dev at web.de>
Date: Tue, 20 Feb 2007 15:49:01 +0100
Subject: [PATCH] kernel32: Display correct Parameter in a TRACE
---
dlls/kernel32/comm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/comm.c b/dlls/kernel32/comm.c
index b9fd19c..fda583b 100644
--- a/dlls/kernel32/comm.c
+++ b/dlls/kernel32/comm.c
@@ -1393,12 +1393,13 @@ BOOL WINAPI GetDefaultCommConfigW(
static const WCHAR comW[] = {'C','O','M',0};
static const WCHAR formatW[] = {'C','O','M','%','c',':','3','8','4','0','0',',','n',',','8',',','1',0};
+ TRACE("(%s, %p, %p) *lpdwSize: %u\n", debugstr_w(lpszName), lpCC, lpdwSize, lpdwSize ? *lpdwSize : 0 );
+
if (strncmpiW(lpszName,comW,3)) {
ERR("not implemented for <%s>\n", debugstr_w(lpszName));
return FALSE;
}
- TRACE("(%s %p %d)\n", debugstr_w(lpszName), lpCC, *lpdwSize );
if (*lpdwSize < sizeof(COMMCONFIG)) {
*lpdwSize = sizeof(COMMCONFIG);
return FALSE;
@@ -1438,7 +1439,7 @@ BOOL WINAPI GetDefaultCommConfigA(
BOOL ret = FALSE;
UNICODE_STRING lpszNameW;
- TRACE("(%s,%p,%d)\n",lpszName,lpCC,*lpdwSize);
+ TRACE("(%s, %p, %p) *lpdwSize: %u\n", debugstr_a(lpszName), lpCC, lpdwSize, lpdwSize ? *lpdwSize : 0 );
if(lpszName) RtlCreateUnicodeStringFromAsciiz(&lpszNameW,lpszName);
else lpszNameW.Buffer = NULL;
--
1.4.1
More information about the wine-patches
mailing list