Eric Pouech : kernel32/tests: Use correct integral type.

Alexandre Julliard julliard at winehq.org
Wed Mar 9 16:08:43 CST 2022


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

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Wed Mar  9 08:19:40 2022 +0100

kernel32/tests: Use correct integral type.

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

---

 dlls/kernel32/tests/fiber.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/kernel32/tests/fiber.c b/dlls/kernel32/tests/fiber.c
index 9ae45c2091b..3503520bdcf 100644
--- a/dlls/kernel32/tests/fiber.c
+++ b/dlls/kernel32/tests/fiber.c
@@ -285,6 +285,7 @@ static void test_FiberLocalStorage(void)
     PEB *peb = teb->Peb;
     NTSTATUS status;
     HANDLE hthread;
+    ULONG index2;
     SIZE_T size;
     void* val;
     BOOL ret;
@@ -407,13 +408,13 @@ static void test_FiberLocalStorage(void)
                     g_fls_data->fls_callback_chunks[j]->callbacks[index].callback);
 
             fls_data->fls_data_chunks[j][index + 1] = (void *)(ULONG_PTR)0x28;
-            status = pRtlFlsAlloc(test_fls_callback, &i);
+            status = pRtlFlsAlloc(test_fls_callback, &index2);
             ok(!status, "Got unexpected status %#x.\n", status);
-            ok(i == fls_indices[0x10], "Got unexpected index %u.\n", i);
+            ok(index2 == fls_indices[0x10], "Got unexpected index %u.\n", index2);
             ok(fls_data->fls_data_chunks[j][index + 1] == (void *)(ULONG_PTR)0x28, "Got unexpected data %p.\n",
                     fls_data->fls_data_chunks[j][index + 1]);
 
-            status = pRtlFlsSetValue(i, (void *)(ULONG_PTR)0x11);
+            status = pRtlFlsSetValue(index2, (void *)(ULONG_PTR)0x11);
             ok(!status, "Got unexpected status %#x.\n", status);
 
             teb->FlsSlots = NULL;




More information about the wine-cvs mailing list