DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.73k stars 231 forks source link

Fix mem_size_sub() for WIN32 in MEM_USE_RTL mode #456

Closed winterheart closed 1 week ago

winterheart commented 1 week ago

Pull Request Type

Description

Use _msize() instead of HeapSize() in RTL memory allocation model. Fixes crash on mission start in Windows.

Related Issues

Closes #449.

Screenshots (if applicable)

Checklist

Additional Comments

Jayman2000 commented 1 week ago

I tried compiling this PR on Windows 11 with ENABLE_MEM_RTL=OFF and ENABLE_MEM_RTL=ON. Both times, I was able to run the game in DWM8And16BitMitigation compatibility mode and load into a level.

winterheart commented 1 week ago

Merged as fix for critical issue.