Alexandre Julliard : wined3d: Fixed a compiler warning.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 25 04:16:46 CDT 2006


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 25 11:09:46 2006 +0200

wined3d: Fixed a compiler warning.

---

 dlls/wined3d/surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index ed9a549..301f7df 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -588,7 +588,7 @@ #endif
             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 @@ #endif
                         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);




More information about the wine-cvs mailing list