smeierzubiesen/hmh

View on GitHub

Showing 10 of 10 total issues

The scope of the variable TargetCursorPosition can be reduced.
Open

DWORD TargetCursorPosition;
Severity: Minor
Found in code/win32_handmade.cpp by cppcheck

Variable XInputLibrary is assigned a value that is never used.
Open

HMODULE XInputLibrary = LoadLibraryA("xinput9_1_0.dll");
Severity: Minor
Found in code/win32_handmade.cpp by cppcheck

Variable XInputLibrary is assigned a value that is never used.
Open

HMODULE XInputLibrary = LoadLibraryA("xinput1_3.dll");
Severity: Minor
Found in code/win32_handmade.cpp by cppcheck

Local variable XInputLibrary shadows outer variable
Open

HMODULE XInputLibrary = LoadLibraryA("xinput9_1_0.dll");
Severity: Minor
Found in code/win32_handmade.cpp and 1 other location by cppcheck
code/win32_handmade.cpp on lines 145..145

Shifting signed 32-bit value by 31 bits is undefined behaviour
Open

bool32 IsDown = ((Message.lParam & (1 << 31)) == 0);
Severity: Critical
Found in code/win32_handmade.cpp by cppcheck

Local variable XInputLibrary shadows outer variable
Open

HMODULE XInputLibrary = LoadLibraryA("xinput1_3.dll");
Severity: Minor
Found in code/win32_handmade.cpp and 1 other location by cppcheck
code/win32_handmade.cpp on lines 145..145

The scope of the variable dwResult can be reduced.
Open

DWORD dwResult;
Severity: Minor
Found in code/win32_handmade.cpp by cppcheck

Resource leak: XInputLibrary
Open

}
Severity: Critical
Found in code/win32_handmade.cpp by cppcheck

C-style pointer casting
Open

game_state *GameState = (game_state *)Memory->PermanentStorage;
Severity: Minor
Found in code/handmade.cpp by cppcheck

C-style pointer casting
Open

game_state *GameState = (game_state *)Memory->PermanentStorage;
Severity: Minor
Found in code/handmade.cpp by cppcheck
Severity
Category
Status
Source
Language