http://bugs.winehq.org/show_bug.cgi?id=14882
Summary: UpdateResource fails to delete a resource Product: Wine Version: 1.1.2 Platform: All OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: johnlen7+wine@gmail.com
UpdateResource should, according to MSDN, delete a resource if (!lpData)&&(!cbData). This is actually the way applications can delete resources and various resource-related application, like InnoSetup, use it.
However wine's current implementation of UpdateResourceW unconditionally calls allocate_resource_data, which will fail if either lpData or cbData is NULL.
I hope I can fix it, but I will need to familiarize myself with kernel32 code first.