Vitaliy Margolen : dinput: Remove incorrect assumption about format.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Dec 11 07:45:04 CST 2006
Module: wine
Branch: master
Commit: 5b520ff6dfea9ab4292fbc4127ca052efb85ec15
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b520ff6dfea9ab4292fbc4127ca052efb85ec15
Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date: Sun Dec 10 17:10:34 2006 -0700
dinput: Remove incorrect assumption about format.
---
dlls/dinput/device.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index fd38baa..8b97875 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -353,14 +353,8 @@ DataFormat *create_DataFormat(const DIDA
else
dt[index].size = sizeof(DWORD);
dt[index].offset_in = wine_format->rgodf[i].dwOfs;
- if (asked_format->rgodf[j].dwOfs < next) {
- WARN("bad format: dwOfs=%d, changing to %d\n", asked_format->rgodf[j].dwOfs, next);
- dt[index].offset_out = next;
- offset[i] = next;
- } else {
- dt[index].offset_out = asked_format->rgodf[j].dwOfs;
- offset[i] = asked_format->rgodf[j].dwOfs;
- }
+ dt[index].offset_out = asked_format->rgodf[j].dwOfs;
+ offset[i] = asked_format->rgodf[j].dwOfs;
dt[index].value = 0;
next = next + dt[index].size;
More information about the wine-cvs
mailing list