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.
This commit is contained in:
Jacob Boerema 2024-05-27 13:32:54 -04:00
parent 1759174d9d
commit aab6f4eab8
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ gimp_input_device_store_init (GimpInputDeviceStore *store)
if (!GetModuleHandleExW (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | if (!GetModuleHandleExW (GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
(LPCTSTR) &gimp_input_device_store_init, (LPCWSTR) &gimp_input_device_store_init,
&thismodule)) &thismodule))
return; return;