From e8d4c2e6741a9a89139a78a2a7d8b5a8a01269a3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 25 May 2006 11:09:46 +0200 Subject: [PATCH] wined3d: Fixed a compiler warning. --- dlls/wined3d/surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index ed9a5492727..301f7df4998 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -588,7 +588,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DLOCKE if ((This->lockedRect.left == 0 && This->lockedRect.top == 0 && This->lockedRect.right == This->currentDesc.Width && This->lockedRect.bottom == This->currentDesc.Height)) { - char *row, *top, *bottom; + BYTE *row, *top, *bottom; int i; glReadPixels(0, 0, @@ -606,7 +606,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED3DLOCKE return E_OUTOFMEMORY; } top = This->resource.allocatedMemory; - bottom = ( (char *) This->resource.allocatedMemory) + pLockedRect->Pitch * ( This->currentDesc.Height - 1); + bottom = ( (BYTE *) This->resource.allocatedMemory) + pLockedRect->Pitch * ( This->currentDesc.Height - 1); for(i = 0; i < This->currentDesc.Height / 2; i++) { memcpy(row, top, pLockedRect->Pitch); memcpy(top, bottom, pLockedRect->Pitch);