mirror of https://github.com/encounter/SDL.git
Fixed pointer signedness warning
This commit is contained in:
parent
3b3dd9af5a
commit
cfb24c7673
|
@ -162,7 +162,7 @@ WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
|
||||||
return WIN_StringToUTF8(name); /* No GUID, go with what we've got. */
|
return WIN_StringToUTF8(name); /* No GUID, go with what we've got. */
|
||||||
}
|
}
|
||||||
|
|
||||||
ptr = (const char *) guid;
|
ptr = (const unsigned char *) guid;
|
||||||
SDL_snprintf(keystr, sizeof (keystr),
|
SDL_snprintf(keystr, sizeof (keystr),
|
||||||
"System\\CurrentControlSet\\Control\\MediaCategories\\{%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
|
"System\\CurrentControlSet\\Control\\MediaCategories\\{%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X}",
|
||||||
ptr[3], ptr[2], ptr[1], ptr[0], ptr[5], ptr[4], ptr[7], ptr[6],
|
ptr[3], ptr[2], ptr[1], ptr[0], ptr[5], ptr[4], ptr[7], ptr[6],
|
||||||
|
|
Loading…
Reference in New Issue