[3/5] dwrite: Fix a stupid copy/paste typo in Release return value

Nikolay Sivov nsivov at codeweavers.com
Mon Oct 22 06:13:36 CDT 2012


Fix a stupid copy/paste typo in Release return value

-------------- next part --------------
>From 962e9ec5a2f290be6d85856b57c13bbcb660e521 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat, 20 Oct 2012 21:47:22 -0400
Subject: [PATCH 3/8] Fix a stupid copy/paste typo in Release return value

---
 dlls/dwrite/font.c       |    6 +++---
 dlls/dwrite/gdiinterop.c |    2 +-
 dlls/dwrite/layout.c     |    4 ++--
 dlls/dwrite/main.c       |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/dwrite/font.c b/dlls/dwrite/font.c
index bb3e8a6..d5346c9 100644
--- a/dlls/dwrite/font.c
+++ b/dlls/dwrite/font.c
@@ -211,7 +211,7 @@ static ULONG WINAPI dwritefontface_Release(IDWriteFontFace *iface)
     if (!ref)
         heap_free(This);
 
-    return S_OK;
+    return ref;
 }
 
 static DWRITE_FONT_FACE_TYPE WINAPI dwritefontface_GetType(IDWriteFontFace *iface)
@@ -405,7 +405,7 @@ static ULONG WINAPI dwritefont_Release(IDWriteFont *iface)
         heap_free(This);
     }
 
-    return S_OK;
+    return ref;
 }
 
 static HRESULT WINAPI dwritefont_GetFontFamily(IDWriteFont *iface, IDWriteFontFamily **family)
@@ -558,7 +558,7 @@ static ULONG WINAPI dwritefontfamily_Release(IDWriteFontFamily *iface)
         heap_free(This);
     }
 
-    return S_OK;
+    return ref;
 }
 
 static HRESULT WINAPI dwritefontfamily_GetFontCollection(IDWriteFontFamily *iface, IDWriteFontCollection **collection)
diff --git a/dlls/dwrite/gdiinterop.c b/dlls/dwrite/gdiinterop.c
index bac6e40..fcc14f7 100644
--- a/dlls/dwrite/gdiinterop.c
+++ b/dlls/dwrite/gdiinterop.c
@@ -84,7 +84,7 @@ static ULONG WINAPI rendertarget_Release(IDWriteBitmapRenderTarget *iface)
         heap_free(This);
     }
 
-    return S_OK;
+    return ref;
 }
 
 static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget *iface,
diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 577a261..760ebb2 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -104,7 +104,7 @@ static ULONG WINAPI dwritetextlayout_Release(IDWriteTextLayout *iface)
         heap_free(This);
     }
 
-    return S_OK;
+    return ref;
 }
 
 static HRESULT WINAPI dwritetextlayout_SetTextAlignment(IDWriteTextLayout *iface, DWRITE_TEXT_ALIGNMENT alignment)
@@ -710,7 +710,7 @@ static ULONG WINAPI dwritetextformat_Release(IDWriteTextFormat *iface)
         heap_free(This);
     }
 
-    return S_OK;
+    return ref;
 }
 
 static HRESULT WINAPI dwritetextformat_SetTextAlignment(IDWriteTextFormat *iface, DWRITE_TEXT_ALIGNMENT alignment)
diff --git a/dlls/dwrite/main.c b/dlls/dwrite/main.c
index 29552c6..5f69723 100644
--- a/dlls/dwrite/main.c
+++ b/dlls/dwrite/main.c
@@ -99,7 +99,7 @@ static ULONG WINAPI renderingparams_Release(IDWriteRenderingParams *iface)
     if (!ref)
         heap_free(This);
 
-    return S_OK;
+    return ref;
 }
 
 static FLOAT WINAPI renderingparams_GetGamma(IDWriteRenderingParams *iface)
@@ -236,7 +236,7 @@ static ULONG WINAPI localizedstrings_Release(IDWriteLocalizedStrings *iface)
         heap_free(This);
     }
 
-    return S_OK;
+    return ref;
 }
 
 static UINT32 WINAPI localizedstrings_GetCount(IDWriteLocalizedStrings *iface)
-- 
1.7.10.4




More information about the wine-patches mailing list