[Wine-patches] [eter-2.1 3/3] ole32: Allow moving a being reallocated block of memory managed by HGLOBAL based IStream. (eterbug #10951).
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Пт Фев 5 06:50:23 MSK 2016
---
dlls/ole32/hglobalstream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c
index 0e88ef6..6877893 100644
--- a/dlls/ole32/hglobalstream.c
+++ b/dlls/ole32/hglobalstream.c
@@ -100,7 +100,7 @@ static HRESULT handle_setsize(struct handle_wrapper *handle, ULONG size)
if (handle->size != size)
{
- HGLOBAL hglobal = GlobalReAlloc(handle->hglobal, size, 0);
+ HGLOBAL hglobal = GlobalReAlloc(handle->hglobal, size, GMEM_MOVEABLE);
if (hglobal)
{
handle->hglobal = hglobal;
--
2.6.5
Подробная информация о списке рассылки Wine-patches