You are using the 32-bit version of QB64-PE. Sorry, I did not pay much attention to what it would do when compiled with the 32-bit version of QB64-PE.
The code should run correctly if you compile with the 64-bit version of QB64-PE though.
Update: I fixed my code above for 32-bit QB64-PE. It should work correctly now.
The code should run correctly if you compile with the 64-bit version of QB64-PE though.
Update: I fixed my code above for 32-bit QB64-PE. It should work correctly now.