Eric Pouech : d3dxof: Don't cast ptrdiff_t to ULONG in traces, use %I instead.

Alexandre Julliard julliard at winehq.org
Tue Apr 12 15:35:17 CDT 2022


Module: wine
Branch: master
Commit: ae9266992a54db660da08f881798c69c55033d9f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ae9266992a54db660da08f881798c69c55033d9f

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Tue Apr 12 20:28:10 2022 +0200

d3dxof: Don't cast ptrdiff_t to ULONG in traces, use %I instead.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3dxof/parsing.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index 5446124234e..c853060dea1 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -274,8 +274,8 @@ HRESULT parse_header(parse_buffer * buf, BYTE ** decomp_buffer_ptr)
     }
 
     if ((decomp_buffer - *decomp_buffer_ptr) != decomp_file_size)
-        ERR("Size of all decompressed chunks (%lu) does not match decompressed file size (%lu).\n",
-                (DWORD)(decomp_buffer - *decomp_buffer_ptr), decomp_file_size);
+        ERR("Size of all decompressed chunks (%Iu) does not match decompressed file size (%lu).\n",
+                decomp_buffer - *decomp_buffer_ptr, decomp_file_size);
 
     /* Use decompressed data */
     buf->buffer = *decomp_buffer_ptr;




More information about the wine-cvs mailing list