mirror of https://github.com/GNOME/gimp.git
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:
parent
1759174d9d
commit
aab6f4eab8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue