ChangeLog HeapReAlloc() does not allocate memory. Index: programs/regedit/regproc.c =================================================================== RCS file: /var/cvs/wine/programs/regedit/regproc.c,v retrieving revision 1.9 diff -u -r1.9 regproc.c --- programs/regedit/regproc.c 28 Oct 2003 21:45:30 -0000 1.9 +++ programs/regedit/regproc.c 20 Nov 2003 07:29:34 -0000 @@ -1133,8 +1133,10 @@ if (required_len > *len) { *len = required_len; - *buffer = HeapReAlloc(GetProcessHeap(), 0, *buffer, - *len * sizeof(**buffer)); + if (!*buffer) + *buffer = HeapAlloc(GetProcessHeap(), 0, *len * sizeof(**buffer)); + else + *buffer = HeapReAlloc(GetProcessHeap(), 0, *buffer, *len * sizeof(**buffer)); CHECK_ENOUGH_MEMORY(*buffer); } } @@ -1214,7 +1216,8 @@ if (max_val_size > *val_size) { *val_size = max_val_size; - *val_buf = HeapReAlloc(GetProcessHeap(), 0, *val_buf, *val_size); + if (!*val_buf) *val_buf = HeapAlloc(GetProcessHeap(), 0, *val_size); + else *val_buf = HeapReAlloc(GetProcessHeap(), 0, *val_buf, *val_size); CHECK_ENOUGH_MEMORY(val_buf); } -- Dimi.