From: André Hentschel Subject: winedump: Ensure function order in a printf (PVS-Studio) Message-Id: <544BC7DF.1020008@dawncrow.de> Date: Sat, 25 Oct 2014 17:55:11 +0200 For https://bugs.winehq.org/show_bug.cgi?id=37126 " ... printf("\\%2.2x \\%2.2x\n", tlb_read_byte(), tlb_read_byte()); ... According to the C++ language standard, the sequence of computing a function's actual arguments is not defined. Which function will be called first depends on the compiler, compilation parameters, etc. " --- tools/winedump/tlb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/winedump/tlb.c b/tools/winedump/tlb.c index 26da2a4..df1ea4b 100644 --- a/tools/winedump/tlb.c +++ b/tools/winedump/tlb.c @@ -647,7 +647,8 @@ static BOOL dump_msft_custdata(seg_t *seg) break; default: printf(": %x ", n); - printf("\\%2.2x \\%2.2x\n", tlb_read_byte(), tlb_read_byte()); + printf("\\%2.2x ", tlb_read_byte()); + printf("\\%2.2x\n", tlb_read_byte()); } }