Made SELECTOR_ReallocBlock preserve the current selector access rights
(problem reported by Andreas Mohr).
diff --git a/memory/global.c b/memory/global.c
index f39df52..e5b9a1b 100644
--- a/memory/global.c
+++ b/memory/global.c
@@ -361,7 +361,7 @@
* change the selector if we are shrinking the block.
* FIXME: shouldn't we keep selectors until the block is deleted?
*/
- SELECTOR_ReallocBlock( sel, 0, 1, SEGMENT_DATA, 0, 0 );
+ SELECTOR_ReallocBlock( sel, 0, 1 );
return handle;
}
@@ -398,7 +398,7 @@
/* Reallocate the selector(s) */
- sel = SELECTOR_ReallocBlock( sel, ptr, size, SEGMENT_DATA, 0, 0 );
+ sel = SELECTOR_ReallocBlock( sel, ptr, size );
if (!sel)
{
HeapFree( SystemHeap, 0, ptr );