The scope of the variable TargetCursorPosition
can be reduced.
DWORD TargetCursorPosition;
Variable XInputLibrary
is assigned a value that is never used.
HMODULE XInputLibrary = LoadLibraryA("xinput9_1_0.dll");
Variable XInputLibrary
is assigned a value that is never used.
HMODULE XInputLibrary = LoadLibraryA("xinput1_3.dll");
Local variable XInputLibrary shadows outer variable
HMODULE XInputLibrary = LoadLibraryA("xinput9_1_0.dll");
Shifting signed 32-bit value by 31 bits is undefined behaviour
bool32 IsDown = ((Message.lParam & (1 << 31)) == 0);
Local variable XInputLibrary shadows outer variable
HMODULE XInputLibrary = LoadLibraryA("xinput1_3.dll");
The scope of the variable dwResult
can be reduced.
DWORD dwResult;
Resource leak: XInputLibrary
}
C-style pointer casting
game_state *GameState = (game_state *)Memory->PermanentStorage;
C-style pointer casting
game_state *GameState = (game_state *)Memory->PermanentStorage;