Make winelib resource data writeable
Felix Nawothnig
felix.nawothnig at t-online.de
Sat May 14 08:28:00 CDT 2005
For PE files there is a hack in kernel/except.c which does COW for
resource data - but winelib apps crash when they try to write to it.
(If this is a design-decision please tell me)
ChangeLog:
Make resource data writeable for winelib applications.
-------------- next part --------------
Index: res32.c
===================================================================
RCS file: /home/wine/wine/tools/winebuild/res32.c,v
retrieving revision 1.17
diff -u -r1.17 res32.c
--- res32.c 18 Mar 2005 14:04:07 -0000 1.17
+++ res32.c 14 May 2005 13:14:06 -0000
@@ -338,7 +338,7 @@
const unsigned int *p = res->data;
int size = res->data_size / 4;
/* dump data as ints to ensure correct alignment */
- fprintf( outfile, "static const unsigned int res_%d[%d] = {\n ", i, size );
+ fprintf( outfile, "static unsigned int res_%d[%d] = {\n ", i, size );
for (j = 0; j < size - 1; j++, p++)
{
fprintf( outfile, "0x%08x,", *p );
More information about the wine-patches
mailing list