Skip to content

Commit

Permalink
Backed out hg changeset add2dbe99fe2. REFGUID is apparently a const t…
Browse files Browse the repository at this point in the history
…ype.
  • Loading branch information
icculus committed Oct 20, 2013
1 parent c521ae8 commit f28c7fe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/haptic/windows/SDL_syshaptic.c
Expand Up @@ -1204,13 +1204,10 @@ SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect,
SDL_HapticEffect * base)
{
HRESULT ret;
REFGUID type = NULL;
REFGUID type = SDL_SYS_HapticEffectType(base);

if (!haptic->hwdata->bXInputHaptic) {
type = SDL_SYS_HapticEffectType(base);
if (type == NULL) {
goto err_hweffect;
}
if ((type == NULL) && (!haptic->hwdata->bXInputHaptic)) {
goto err_hweffect;
}

/* Alloc the effect. */
Expand Down

0 comments on commit f28c7fe

Please sign in to comment.