Eric Pouech : user32: Use correct integral type.
Alexandre Julliard
julliard at winehq.org
Wed Feb 2 16:38:03 CST 2022
Module: wine
Branch: master
Commit: 10e0867f8600d4936a3b0ff0a8678ccbbe41d41a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=10e0867f8600d4936a3b0ff0a8678ccbbe41d41a
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Feb 2 12:03:03 2022 +0100
user32: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/input.c | 2 +-
dlls/user32/spy.c | 2 +-
dlls/user32/user_private.h | 2 +-
dlls/user32/win.c | 3 ++-
4 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index fde4b9965ed..eca8c3f115a 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -49,7 +49,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(win);
WINE_DECLARE_DEBUG_CHANNEL(keyboard);
-INT global_key_state_counter = 0;
+LONG global_key_state_counter = 0;
/***********************************************************************
* get_key_state
diff --git a/dlls/user32/spy.c b/dlls/user32/spy.c
index 727094be05d..e4651661ae0 100644
--- a/dlls/user32/spy.c
+++ b/dlls/user32/spy.c
@@ -2045,7 +2045,7 @@ typedef struct
WCHAR wnd_name[16]; /* window name for message */
} SPY_INSTANCE;
-static int indent_tls_index = TLS_OUT_OF_INDEXES;
+static LONG indent_tls_index = TLS_OUT_OF_INDEXES;
/***********************************************************************
* get_indent_level
diff --git a/dlls/user32/user_private.h b/dlls/user32/user_private.h
index d1016780658..9e65e9f1f66 100644
--- a/dlls/user32/user_private.h
+++ b/dlls/user32/user_private.h
@@ -120,7 +120,7 @@ struct rawinput_thread_data
RAWINPUT buffer[1]; /* rawinput message data buffer */
};
-extern INT global_key_state_counter DECLSPEC_HIDDEN;
+extern LONG global_key_state_counter DECLSPEC_HIDDEN;
extern BOOL (WINAPI *imm_register_window)(HWND) DECLSPEC_HIDDEN;
extern void (WINAPI *imm_unregister_window)(HWND) DECLSPEC_HIDDEN;
#define WM_IME_INTERNAL 0x287
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 4f1f70d9802..02891cd34ce 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -4192,7 +4192,8 @@ BOOL WINAPI GetProcessDefaultLayout( DWORD *layout )
if (process_layout == ~0u)
{
WCHAR *str, buffer[MAX_PATH];
- DWORD i, len, version_layout = 0;
+ DWORD i, version_layout = 0;
+ UINT len;
DWORD user_lang = GetUserDefaultLangID();
DWORD *languages;
void *data = NULL;
More information about the wine-cvs
mailing list