For some reason my program is returning with a code of 3. My program starts, creates a window, initializes everything needed for drawing with DirectX, it loads its resources, and then it simply exits for no reason at all. My WinMain function doesn't even finish, I put a MessageBoxA right before the end and it wasn't called.
I don't call exit() at any point, so it's not something going wrong with the order of processing in my program. I've searched the DLLs that I use and none of them use the exit() function at any point either. Does anyone know if there's some universal use for returning a value of 3? I'm completely lost here.