Fixed compiler warning - HRESULT is set to FFERR_* values, but is an int

main
Sam Lantinga 2014-06-25 01:43:58 -07:00
parent a8955f2640
commit 724d9380ba
1 changed files with 4 additions and 4 deletions

View File

@ -91,14 +91,14 @@ static int numhaptics = -1;
* Like strerror but for force feedback errors. * Like strerror but for force feedback errors.
*/ */
static const char * static const char *
FFStrError(HRESULT err) FFStrError(unsigned int err)
{ {
switch (err) { switch (err) {
case FFERR_DEVICEFULL: case FFERR_DEVICEFULL:
return "device full"; return "device full";
/* This should be valid, but for some reason isn't defined... */ /* This should be valid, but for some reason isn't defined... */
/* case FFERR_DEVICENOTREG: /* case FFERR_DEVICENOTREG:
return "device not registered"; */ return "device not registered"; */
case FFERR_DEVICEPAUSED: case FFERR_DEVICEPAUSED:
return "device paused"; return "device paused";
case FFERR_DEVICERELEASED: case FFERR_DEVICERELEASED: