mirror of
https://github.com/glfw/glfw.git
synced 2026-02-17 21:12:34 +01:00
Fixed invalid pointer use.
This commit is contained in:
@@ -103,7 +103,7 @@ static void list_modes(GLFWmonitor* monitor)
|
||||
{
|
||||
printf("%3u: %s", (unsigned int) i, format_mode(modes + i));
|
||||
|
||||
if (memcmp(&mode, modes + i, sizeof(GLFWvidmode)) == 0)
|
||||
if (memcmp(mode, modes + i, sizeof(GLFWvidmode)) == 0)
|
||||
printf(" (current mode)");
|
||||
|
||||
putchar('\n');
|
||||
|
||||
Reference in New Issue
Block a user