https://bugs.winehq.org/show_bug.cgi?id=24125
--- Comment #16 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Created attachment 55561 --> https://bugs.winehq.org/attachment.cgi?id=55561 proposed patchset 3/3
This is the patchset I've come up with.
It makes Wine read the system DEP setting from the registry, and set DEP policies to appropriate values when the application queries them.
Global DEP system policy is set in [HKCU\Software\Wine\Boot.ini]. The setting is read from a string value named NoExecute. If it contains a valid DEP flag, this value is used, otherwise it defaults to OptIn.
DEP system policies may be set individually for those applications defined on the application tab in winecfg. It will search for them in [HKCU\Software\Wine\AppDefaults<whatever.exe>\Boot.ini]. If found, that value overrides the global settings.
I designed this so that it could be extended for other boot.ini flags.