From aab6f4eab8103b36b4202492e02c63bde01d8170 Mon Sep 17 00:00:00 2001 From: Jacob Boerema Date: Mon, 27 May 2024 13:32:54 -0400 Subject: [PATCH] modules: fix CI failure in gimp-win-x86 job Our gimp-win-x86 job fails with the following error: ../modules/gimpinputdevicestore-dx.c:207:28: error: passing argument 2 of 'GetModuleHandleExW' from incompatible pointer type [-Wincompatible-pointer-types] Fairly Recent the call to `GetModuleHandleEx` was changed to `GetModuleHandleExW`. This new call expects a wide char pointer instead of a char pointer. So replace it with the wide variant (LPCWSTR). Since in this call an address is actually expected, the actual contents don't need to be a wide string. --- modules/gimpinputdevicestore-dx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gimpinputdevicestore-dx.c b/modules/gimpinputdevicestore-dx.c index 5a99d92419..82a926f05c 100644 --- a/modules/gimpinputdevicestore-dx.c +++ b/modules/gimpinputdevicestore-dx.c @@ -204,7 +204,7 @@ gimp_input_device_store_init (GimpInputDeviceStore *store) if (!GetModuleHandleExW (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, - (LPCTSTR) &gimp_input_device_store_init, + (LPCWSTR) &gimp_input_device_store_init, &thismodule)) return;