Skip to content

Commit 92ff994

Browse files
authored
[SDK][USER32_APITEST] Update <msgdump.h> (reactos#8099)
JIRA issue: N/A - Replace MSGDUMP_TPRINTF with MSGDUMP_PRINTF and use ANSI for strings. Now, we can use printf- compatible function for dump. - Fix some mistakes. - Adapt user32_apitest MessageStateAnalyzer to these changes.
1 parent 87f4b28 commit 92ff994

File tree

2 files changed

+1353
-1362
lines changed

2 files changed

+1353
-1362
lines changed

modules/rostests/apitests/user32/MessageStateAnalyzer.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,7 @@ static HWND s_hImeWnd = NULL;
2222
static WNDPROC s_fnOldEditWndProc = NULL;
2323
static WNDPROC s_fnOldImeWndProc = NULL;
2424

25-
static void MsgDumpPrintf(LPCSTR fmt, ...)
26-
{
27-
static char s_szText[1024];
28-
va_list va;
29-
va_start(va, fmt);
30-
StringCbVPrintfA(s_szText, sizeof(s_szText), fmt, va);
31-
trace("%s", s_szText);
32-
va_end(va);
33-
}
34-
#define MSGDUMP_TPRINTF MsgDumpPrintf
25+
#define MSGDUMP_PRINTF trace
3526
#define MSGDUMP_PREFIX s_prefix
3627
#include "msgdump.h" /* msgdump.h needs MSGDUMP_TPRINTF and MSGDUMP_PREFIX */
3728

0 commit comments

Comments
 (0)