kernel32: Indicate that HeapValidate called by GlobalHandle is not the sign of heap corruption.

Dmitry Timoshkov dmitry at baikal.ru
Wed Feb 13 02:46:49 CST 2013


This helps to distinguish this one from real signs of heap corruption,
and saves quite a bit of effort analysing +heap or warn+heap logs.
---
 dlls/kernel32/heap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/heap.c b/dlls/kernel32/heap.c
index b74763f..c0bf7fe 100644
--- a/dlls/kernel32/heap.c
+++ b/dlls/kernel32/heap.c
@@ -560,6 +560,7 @@ HGLOBAL WINAPI GlobalHandle(
                 handle = (HGLOBAL)pmem;  /* valid fixed block */
                 break;
             }
+            WARN("please ignore HeapValidate warning above\n");
             handle = POINTER_TO_HANDLE(pmem);
         } else
             handle = (HGLOBAL)pmem;
-- 
1.8.1.3




More information about the wine-patches mailing list