winedump: Ensure function order in a printf (PVS-Studio)

André Hentschel nerv at
Sat Oct 25 10:55:11 CDT 2014


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(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-winedump-Ensure-function-order-in-a-printf.txt
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <>

More information about the wine-patches mailing list