[PATCH] d3dx9_36: Consistently use 4 space indentation.

Stefan Dösinger stefan at codeweavers.com
Mon Feb 16 12:12:58 CST 2015


Before the next guy copypastes the bottom code and adds more mess.
---
 dlls/d3dx9_36/shader.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/d3dx9_36/shader.c b/dlls/d3dx9_36/shader.c
index c66936d..0bb9e2f 100644
--- a/dlls/d3dx9_36/shader.c
+++ b/dlls/d3dx9_36/shader.c
@@ -1859,9 +1859,9 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru
         constant->constants = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*constant->constants) * count);
         if (!constant->constants)
         {
-             ERR("Out of memory\n");
-             hr = E_OUTOFMEMORY;
-             goto error;
+            ERR("Out of memory\n");
+            hr = E_OUTOFMEMORY;
+            goto error;
         }
 
         for (i = 0; i < count; ++i)
@@ -2031,9 +2031,9 @@ HRESULT WINAPI D3DXGetShaderConstantTableEx(const DWORD *byte_code, DWORD flags,
                                   sizeof(*object->constants) * object->desc.Constants);
     if (!object->constants)
     {
-         ERR("Out of memory\n");
-         hr = E_OUTOFMEMORY;
-         goto error;
+        ERR("Out of memory\n");
+        hr = E_OUTOFMEMORY;
+        goto error;
     }
 
     constant_info = (const D3DXSHADER_CONSTANTINFO *)(object->ctab + ctab_header->ConstantInfo);
@@ -2129,6 +2129,6 @@ HRESULT WINAPI D3DXGetShaderSamplers(const DWORD *byte_code, const char **sample
 
 HRESULT WINAPI D3DXDisassembleShader(const DWORD *shader, BOOL colorcode, const char *comments, ID3DXBuffer **disassembly)
 {
-   FIXME("%p %d %s %p: stub\n", shader, colorcode, debugstr_a(comments), disassembly);
-   return E_OUTOFMEMORY;
+    FIXME("%p %d %s %p: stub\n", shader, colorcode, debugstr_a(comments), disassembly);
+    return E_OUTOFMEMORY;
 }
-- 
2.3.0




More information about the wine-patches mailing list