Fixed pointer signedness warning

This commit is contained in:
Sam Lantinga 2016-10-12 00:01:17 -07:00
parent 3b3dd9af5a
commit cfb24c7673
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid)
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),
"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],