src/haptic/windows/SDL_syshaptic.c
changeset 7884 15027aa2cf21
parent 7858 170c9f4c3c28
child 8093 b43765095a6f
--- a/src/haptic/windows/SDL_syshaptic.c	Wed Oct 23 00:58:20 2013 -0400
+++ b/src/haptic/windows/SDL_syshaptic.c	Wed Oct 23 15:54:12 2013 -0400
@@ -1190,7 +1190,6 @@
         return &GUID_CustomForce;
 
     default:
-        SDL_SetError("Haptic: Unknown effect type.");
         return NULL;
     }
 }
@@ -1207,6 +1206,7 @@
     REFGUID type = SDL_SYS_HapticEffectType(base);
 
     if ((type == NULL) && (!haptic->hwdata->bXInputHaptic)) {
+        SDL_SetError("Haptic: Unknown effect type.");
         goto err_hweffect;
     }