From 5b520ff6dfea9ab4292fbc4127ca052efb85ec15 Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Sun, 10 Dec 2006 17:10:34 -0700 Subject: [PATCH] dinput: Remove incorrect assumption about format. --- dlls/dinput/device.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index fd38baa3c10..8b97875464a 100644 --- a/dlls/dinput/device.c +++ b/dlls/dinput/device.c @@ -353,14 +353,8 @@ DataFormat *create_DataFormat(const DIDATAFORMAT *wine_format, LPCDIDATAFORMAT a 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; -- 2.11.4.GIT