Nikolay Sivov : dwrite: Keep string length in text layout.
Alexandre Julliard
julliard at winehq.org
Fri Oct 26 11:36:20 CDT 2012
Module: wine
Branch: master
Commit: 1b449f459f96a4b64417afa1800d0ce13d3fd6b3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b449f459f96a4b64417afa1800d0ce13d3fd6b3
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Oct 26 12:09:50 2012 -0400
dwrite: Keep string length in text layout.
---
dlls/dwrite/layout.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
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 */
More information about the wine-cvs
mailing list