Somehow this compiled with the previous gcc versions (as well as MSVS), but a static_cast from an integer wxUIntPtr type to a pointer HANDLE type is obviously invalid and a reinterpret_cast is needed here. This fixes compilation with g++ 8.
Somehow this compiled with the previous gcc versions (as well as MSVS), but a static_cast from an integer wxUIntPtr type to a pointer HANDLE type is obviously invalid and a reinterpret_cast is needed here. This fixes compilation with g++ 8.