From e18795a1647d1a25041fb763e9bc5bfde1908c5d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 30 May 2014 02:40:23 -0700 Subject: [PATCH] libobs/util/dstr.c: Add missing dstr_from_wcs --- libobs/util/dstr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libobs/util/dstr.c b/libobs/util/dstr.c index bc2722ae8..f0601a857 100644 --- a/libobs/util/dstr.c +++ b/libobs/util/dstr.c @@ -647,6 +647,13 @@ char *dstr_to_mbs(const struct dstr *str) return dst; } +wchar_t *dstr_to_wcs(const struct dstr *str) +{ + wchar_t *dst; + os_utf8_to_wcs_ptr(str->array, str->len, &dst); + return dst; +} + void dstr_from_wcs(struct dstr *dst, const wchar_t *wstr) { size_t len = wchar_to_utf8(wstr, 0, NULL, 0, 0);