src/haptic/windows/SDL_syshaptic.c
changeset 7884 15027aa2cf21
parent 7858 170c9f4c3c28
child 8093 b43765095a6f
     1.1 --- a/src/haptic/windows/SDL_syshaptic.c	Wed Oct 23 00:58:20 2013 -0400
     1.2 +++ b/src/haptic/windows/SDL_syshaptic.c	Wed Oct 23 15:54:12 2013 -0400
     1.3 @@ -1190,7 +1190,6 @@
     1.4          return &GUID_CustomForce;
     1.5  
     1.6      default:
     1.7 -        SDL_SetError("Haptic: Unknown effect type.");
     1.8          return NULL;
     1.9      }
    1.10  }
    1.11 @@ -1207,6 +1206,7 @@
    1.12      REFGUID type = SDL_SYS_HapticEffectType(base);
    1.13  
    1.14      if ((type == NULL) && (!haptic->hwdata->bXInputHaptic)) {
    1.15 +        SDL_SetError("Haptic: Unknown effect type.");
    1.16          goto err_hweffect;
    1.17      }
    1.18