- Fix crash on Windows 7 machines due to new API call in the StreamDeck software. (PowerDeterminePlatformRoleEx) (Fixes #4)
This fix is done by hooking GetProcAddress and monitoring for usages of 'PowerDeterminePlatformRoleEx'. If found, the import will instead be reverted to using just the 'PowerDeterminePlatformRole' version of the API. Since StreamDeck.exe is 64bit (along with the imported libraries that use this API) we can safely ignore the parameter passed to the function as it's passed within a register.