Merge pull request #12871 from sonninnos/msvc-buildfix

MSVC buildfix
This commit is contained in:
Autechre 2021-08-25 00:37:40 +02:00 committed by GitHub
commit 10e1f5d72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,11 +310,12 @@ static bool win32_display_server_set_resolution(void *data,
static int resolution_list_qsort_func( static int resolution_list_qsort_func(
const video_display_config_t *a, const video_display_config_t *b) const video_display_config_t *a, const video_display_config_t *b)
{ {
char str_a[64];
char str_b[64];
if (!a || !b) if (!a || !b)
return 0; return 0;
char str_a[64];
char str_b[64];
snprintf(str_a, sizeof(str_a), "%04dx%04d (%d Hz)", snprintf(str_a, sizeof(str_a), "%04dx%04d (%d Hz)",
a->width, a->width,
a->height, a->height,