mirror of https://github.com/encounter/SDL.git
Backed out hg changeset add2dbe99fe2. REFGUID is apparently a const type.
This commit is contained in:
parent
c521ae84bc
commit
f28c7fe8a5
|
@ -1204,14 +1204,11 @@ SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect,
|
||||||
SDL_HapticEffect * base)
|
SDL_HapticEffect * base)
|
||||||
{
|
{
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
REFGUID type = NULL;
|
REFGUID type = SDL_SYS_HapticEffectType(base);
|
||||||
|
|
||||||
if (!haptic->hwdata->bXInputHaptic) {
|
if ((type == NULL) && (!haptic->hwdata->bXInputHaptic)) {
|
||||||
type = SDL_SYS_HapticEffectType(base);
|
|
||||||
if (type == NULL) {
|
|
||||||
goto err_hweffect;
|
goto err_hweffect;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Alloc the effect. */
|
/* Alloc the effect. */
|
||||||
effect->hweffect = (struct haptic_hweffect *)
|
effect->hweffect = (struct haptic_hweffect *)
|
||||||
|
|
Loading…
Reference in New Issue