src/joystick/windows/SDL_dinputjoystick.c
changeset 8976 1a5d959d7b32
parent 8972 dfc759d7486f
child 9475 d5adc0c06a03
     1.1 --- a/src/joystick/windows/SDL_dinputjoystick.c	Sun Jul 06 20:41:39 2014 -0700
     1.2 +++ b/src/joystick/windows/SDL_dinputjoystick.c	Mon Jul 07 10:26:28 2014 -0700
     1.3 @@ -231,7 +231,7 @@
     1.4      return SDL_SetError("%s() [%s]: %s", function,
     1.5      DXGetErrorString9A(code), DXGetErrorDescription9A(code));
     1.6      */
     1.7 -    return SDL_SetError("%s() DirectX error %d", function, code);
     1.8 +    return SDL_SetError("%s() DirectX error 0x%8.8lx", function, code);
     1.9  }
    1.10  
    1.11  static SDL_bool
    1.12 @@ -324,7 +324,7 @@
    1.13      /* Because we used CoCreateInstance, we need to Initialize it, first. */
    1.14      instance = GetModuleHandle(NULL);
    1.15      if (instance == NULL) {
    1.16 -        return SDL_SetError("GetModuleHandle() failed with error code %d.", GetLastError());
    1.17 +        return SDL_SetError("GetModuleHandle() failed with error code %lu.", GetLastError());
    1.18      }
    1.19      result = IDirectInput8_Initialize(dinput, instance, DIRECTINPUT_VERSION);
    1.20