Alistair Leslie-Hughes : qmgr/tests: Use standard wine_dbgstr_longlong.

Alexandre Julliard julliard at winehq.org
Thu Jul 6 16:25:16 CDT 2017


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Thu Jul  6 06:13:19 2017 +0000

qmgr/tests: Use standard wine_dbgstr_longlong.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/qmgr/tests/file.c | 8 ++++----
 dlls/qmgr/tests/job.c  | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/qmgr/tests/file.c b/dlls/qmgr/tests/file.c
index 5e6eb34..9fdf08c 100644
--- a/dlls/qmgr/tests/file.c
+++ b/dlls/qmgr/tests/file.c
@@ -175,10 +175,10 @@ static void test_GetProgress_PreTransfer(void)
 
     hres = IBackgroundCopyFile_GetProgress(test_file, &progress);
     ok(hres == S_OK, "GetProgress failed: %08x\n", hres);
-    ok(progress.BytesTotal == BG_SIZE_UNKNOWN, "Got incorrect total size: %x%08x\n",
-       (DWORD)(progress.BytesTotal >> 32), (DWORD)progress.BytesTotal);
-    ok(progress.BytesTransferred == 0, "Got incorrect number of transferred bytes: %x%08x\n",
-       (DWORD)(progress.BytesTransferred >> 32), (DWORD)progress.BytesTransferred);
+    ok(progress.BytesTotal == BG_SIZE_UNKNOWN, "Got incorrect total size: %s\n",
+       wine_dbgstr_longlong(progress.BytesTotal));
+    ok(progress.BytesTransferred == 0, "Got incorrect number of transferred bytes: %s\n",
+       wine_dbgstr_longlong(progress.BytesTransferred));
     ok(progress.Completed == FALSE, "Got incorrect completion status\n");
 }
 
diff --git a/dlls/qmgr/tests/job.c b/dlls/qmgr/tests/job.c
index 83134e5..6d8185a 100644
--- a/dlls/qmgr/tests/job.c
+++ b/dlls/qmgr/tests/job.c
@@ -261,10 +261,10 @@ static void test_GetProgress_preTransfer(void)
     hres = IBackgroundCopyJob_GetProgress(test_job, &progress);
     ok(hres == S_OK, "GetProgress failed: 0x%08x\n", hres);
 
-    ok(progress.BytesTotal == 0, "Incorrect BytesTotal: %x%08x\n",
-       (DWORD)(progress.BytesTotal >> 32), (DWORD)progress.BytesTotal);
-    ok(progress.BytesTransferred == 0, "Incorrect BytesTransferred: %x%08x\n",
-       (DWORD)(progress.BytesTransferred >> 32), (DWORD)progress.BytesTransferred);
+    ok(progress.BytesTotal == 0, "Incorrect BytesTotal: %s\n",
+       wine_dbgstr_longlong(progress.BytesTotal));
+    ok(progress.BytesTransferred == 0, "Incorrect BytesTransferred: %s\n",
+       wine_dbgstr_longlong(progress.BytesTransferred));
     ok(progress.FilesTotal == 0, "Incorrect FilesTotal: %u\n", progress.FilesTotal);
     ok(progress.FilesTransferred == 0, "Incorrect FilesTransferred %u\n", progress.FilesTransferred);
 }




More information about the wine-cvs mailing list