Sheer luck: the first call to VirtualAlloc succeeds because it asks
for an amount that is much smaller than the 64-bit address space.

32 GB is not that small. I have only 8 GB on my current car...