[1/3] dwrite: Keep string length in text layout
Nikolay Sivov
nsivov at codeweavers.com
Fri Oct 26 05:32:06 CDT 2012
Keep string length in text layout
-------------- next part --------------
>From d89a6f2116c6e772a084922d2bfc4c1c701bdafe Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri, 26 Oct 2012 12:09:50 -0400
Subject: [PATCH 1/4] Keep string length in text layout
---
dlls/dwrite/layout.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 8567c6a..153716b 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -50,6 +50,7 @@ struct dwrite_textlayout {
LONG ref;
WCHAR *str;
+ UINT32 len;
struct dwrite_textformat_data format;
};
@@ -676,6 +677,7 @@ HRESULT create_textlayout(const WCHAR *str, UINT32 len, IDWriteTextFormat *forma
This->IDWriteTextLayout_iface.lpVtbl = &dwritetextlayoutvtbl;
This->ref = 1;
This->str = heap_strdupnW(str, len);
+ This->len = len;
memset(&This->format, 0, sizeof(This->format));
/* reference is not kept here, instead copy all underlying data */
--
1.7.10.4
More information about the wine-patches
mailing list