Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Used dxerr instead of dxerr9 in directinput joystick driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 3, 2008
1 parent f42e496 commit 029bf23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/win32/SDL_dxjoystick.c
Expand Up @@ -48,9 +48,9 @@
/* Used for the c_dfDIJoystick2 symbol (no imports are used) */
# pragma comment (lib, "dinput.lib")
#endif
#include <dxerr9.h> /* From DirectX SDK 9c */
#include <dxerr.h>
#ifdef _MSC_VER
# pragma comment (lib, "dxerr9.lib")
# pragma comment (lib, "dxerr.lib")
#endif

/* an ISO hack for VisualC++ */
Expand Down Expand Up @@ -127,7 +127,7 @@ static void
SetDIerror(const char *function, HRESULT code)
{
SDL_SetError("%s() [%s]: %s", function,
DXGetErrorString9(code), DXGetErrorDescription9(code));
DXGetErrorString(code), DXGetErrorDescription(code));
}


Expand Down

0 comments on commit 029bf23

Please sign in to comment.