On Sat Jun 7 23:51:20 2025 +0000, Julius Bettin wrote:
changed this line in [version 3 of the diff](/wine/wine/-/merge_requests/8237/diffs?diff_id=183690&start_sha=cf13d97d584573b97f58123ade4e4136929e7319#5ae7449abf26aa1926b9b677633a99ed950907af_791_792)
From what I could see `HeapSummary` behaves in the following way: 1. The `flag` parameter is ignored 2. On success it does not explicitly set / overwrite the last error 3. Passing an invalid `HEAP_SUMMARY` pointer (e.g. `NULL`) causes a crash 4. Passing a valid `HEAP_SUMMARY` pointer but setting the `cb` to something other than `sizeof(HEAP_SUMMARY)` yields `ERROR_INVALID_PARAMETER` 5. Passing an invalid heap handle seems to yield `998` (`ERROR_NOACCESS`)
I tried to recreate that behavior, except for 5 as I am not even sure if this is directly checked by `HeapSummary` or a follow up error.