http://bugs.winehq.org/show_bug.cgi?id=2682
felix.nawothnig@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1
------- Additional Comments From felix.nawothnig@t-online.de 2005-08-06 21:40 ------- A recent patch by Alexandre kinda fixed this - rsrc is no longer readonly. However, the right behaviour would be to reprotect rsrc and fix check_resource_write().
check_resource_write() fails for winelib apps because AllocationBase from VirtualQuery(), which points to the ELF header, is used as a HMODULE. If writing to resources in loaded DLLs also causes a COW on Windows we should use BaseAddress from LdrFindEntryForAddress() - otherwise we can simply pass GetCurrentProcess() to RtlImageDirectoryEntryToData().