openbsd-ports/emulators/wine/patches/patch-windows_dinput_c
2007-10-26 21:04:25 +00:00

22 lines
833 B
Plaintext

$OpenBSD: patch-windows_dinput_c,v 1.2 2007/10/26 21:04:25 ajacoutot Exp $
--- windows/dinput.c.orig Wed Feb 24 11:53:30 1999
+++ windows/dinput.c Fri Oct 26 22:55:07 2007
@@ -382,7 +382,7 @@ static HRESULT WINAPI SysKeyboardAImpl_SetProperty(
ph->dwSize,ph->dwHeaderSize,ph->dwObj,ph->dwHow);
if (!HIWORD(rguid)) {
switch ((DWORD)rguid) {
- case DIPROP_BUFFERSIZE: {
+ case (DWORD)DIPROP_BUFFERSIZE: {
LPCDIPROPDWORD pd = (LPCDIPROPDWORD)ph;
TRACE(dinput,"(buffersize=%ld)\n",pd->dwData);
@@ -1068,7 +1068,7 @@ static HRESULT WINAPI SysMouseAImpl_SetProperty(LPDIRE
if (!HIWORD(rguid)) {
switch ((DWORD)rguid) {
- case DIPROP_BUFFERSIZE: {
+ case (DWORD)DIPROP_BUFFERSIZE: {
LPCDIPROPDWORD pd = (LPCDIPROPDWORD)ph;
TRACE(dinput,"buffersize = %ld\n",pd->dwData);