kernel32: Validate pointer before calling HeapSize.