src/joystick/windows/SDL_dxjoystick.c
changeset 6977 b73d51026c68
parent 6974 11a03a79dfe8
child 6990 2514368c2aaf
     1.1 --- a/src/joystick/windows/SDL_dxjoystick.c	Thu Mar 07 15:37:08 2013 -0800
     1.2 +++ b/src/joystick/windows/SDL_dxjoystick.c	Thu Mar 07 20:12:40 2013 -0800
     1.3 @@ -819,7 +819,7 @@
     1.4  		pCurList = SYS_Joystick;
     1.5  		SYS_Joystick = NULL;
     1.6  		s_iNewGUID = 0;
     1.7 -		SDL_mutexP( s_mutexJoyStickEnum );
     1.8 +		SDL_LockMutex( s_mutexJoyStickEnum );
     1.9  
    1.10  		if ( !s_pKnownJoystickGUIDs )
    1.11  			s_pKnownJoystickGUIDs = SDL_malloc( sizeof(GUID)*MAX_JOYSTICKS );
    1.12 @@ -832,7 +832,7 @@
    1.13  			EnumJoysticksCallback,
    1.14  			&pCurList, DIEDFL_ATTACHEDONLY);
    1.15  
    1.16 -		SDL_mutexV( s_mutexJoyStickEnum );
    1.17 +		SDL_UnlockMutex( s_mutexJoyStickEnum );
    1.18  	}
    1.19  
    1.20  	if ( pCurList )