std goes out of it's way to null-check the result of GetProcessHeap():
https://github.com/rust-lang/rust/blob/ab62d56603293e9264b4d811d2d6f5b49a3264f9/library/std/src/sys/alloc/windows.rs#L94-L99
Investigate if HeapAlloc etc. already null checks, or if ialloc needs adjustment.