Vitaliy Margolen : dinput: Allow for holes in device status structure.

Alexandre Julliard julliard at winehq.org
Sun Jan 4 09:09:15 CST 2009


Module: wine
Branch: master
Commit: d2da2d378eefb1450f8882d80157465d1e272746
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d2da2d378eefb1450f8882d80157465d1e272746

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Sat Jan  3 17:53:22 2009 -0700

dinput: Allow for holes in device status structure.

---

 dlls/dinput/device.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index ebc87eb..20a577b 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -432,11 +432,8 @@ static HRESULT create_DataFormat(LPCDIDATAFORMAT asked_format, DataFormat *forma
 		break;
 	    }
 	}
-	
-	if (j == asked_format->dwNumObjs)
-	    same = 0;
     }
-    
+
     TRACE("Setting to default value :\n");
     for (j = 0; j < asked_format->dwNumObjs; j++) {
 	if (done[j] == 0) {




More information about the wine-cvs mailing list