Andrew Talbot : wined3d: Remove unneeded address-of operators from array names.

Alexandre Julliard julliard at winehq.org
Tue Dec 9 06:24:21 CST 2008


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Dec  8 18:53:42 2008 +0000

wined3d: Remove unneeded address-of operators from array names.

---

 dlls/wined3d/stateblock.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 3faa5a0..78c57d9 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -543,12 +543,12 @@ static HRESULT  WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface)
         }
 
         for (i = 0; i < GL_LIMITS(clipplanes); i++) {
-            if (This->changed.clipplane[i] && memcmp(&targetStateBlock->clipplane[i],
-                                                        &This->clipplane[i],
+            if (This->changed.clipplane[i] && memcmp(targetStateBlock->clipplane[i],
+                                                        This->clipplane[i],
                                                         sizeof(This->clipplane)) != 0) {
 
                 TRACE("Updating clipplane %d\n", i);
-                memcpy(&This->clipplane[i], &targetStateBlock->clipplane[i],
+                memcpy(This->clipplane[i], targetStateBlock->clipplane[i],
                                         sizeof(This->clipplane));
             }
         }




More information about the wine-cvs mailing list