Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: src/utils/win/SkDWrite.h

Issue 500113002: Require length in sk_wchar_to_string. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkTypeface_win_dw.cpp ('k') | src/utils/win/SkDWrite.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/win/SkDWrite.h
diff --git a/src/utils/win/SkDWrite.h b/src/utils/win/SkDWrite.h
index e763b4a0972fd89a31e06106d2da8ee46500be4b..123198ce5fe331acbd902f8a3edd2ad5c026e8e3 100644
--- a/src/utils/win/SkDWrite.h
+++ b/src/utils/win/SkDWrite.h
@@ -29,7 +29,7 @@ typedef SkAutoSTMalloc<16, WCHAR> SkSMallocWCHAR;
HRESULT sk_cstring_to_wchar(const char* skname, SkSMallocWCHAR* name);
/** Converts a WCHAR string to a utf8 string. */
-HRESULT sk_wchar_to_skstring(WCHAR* name, SkString* skname);
+HRESULT sk_wchar_to_skstring(WCHAR* name, int nameLen, SkString* skname);
reed1 2014/08/25 17:04:18 Can we document that nameLen is the number-of-WCHA
bungeman-skia 2014/08/25 17:08:52 Done.
////////////////////////////////////////////////////////////////////////////////
// Locale
« no previous file with comments | « src/ports/SkTypeface_win_dw.cpp ('k') | src/utils/win/SkDWrite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698