https://bugs.winehq.org/show_bug.cgi?id=48545
--- Comment #2 from Hans Leidekker hans@meelstraat.net --- (In reply to Zakk from comment #0)
The registry entries to add SDL controller mappings do not work (HKLM/CurrentControlSet/Services/WineBus/Map)
I've discovered the enumeration of the subkeys fails with ERROR_ACCESS_DENIED
If I change the RegOpenKeyExW call (line 1039 of bus_sdl.c) to use KEY_READ instead of KEY_ENUMERATE_SUB_KEYS the enumeration succeeds and the controller mappings are passed to SDL.
The registry keys were created with the stock wine regedit program.
I can provide a diff if really required, but I feel like this might be an issue that needs solving somewhere else (perhaps the default permissions on registry key creation need tweaking?)
No, KEY_ENUMERATE_SUB_KEYS is wrong. It should be KEY_READ as you suggested.