explorer: Convert names from STRRET_CSTR.

Vincent Povirk madewokherd at gmail.com
Wed Oct 30 14:56:51 CDT 2013


For bug 33438.
-------------- next part --------------
From 9e5a75e86704bd5af5fe022988ded9a083669b8b Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 30 Oct 2013 14:50:51 -0500
Subject: [PATCH] explorer: Convert names from STRRET_CSTR.

---
 programs/explorer/explorer.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c
index 1df781c..b67d48b 100644
--- a/programs/explorer/explorer.c
+++ b/programs/explorer/explorer.c
@@ -128,6 +128,13 @@ static BOOL create_combobox_item(IShellFolder *folder, LPCITEMIDLIST pidl, IImag
     case STRRET_WSTR:
         item->pszText = strret.u.pOleStr;
         break;
+    case STRRET_CSTR:
+    {
+        int len;
+        len = MultiByteToWideChar(CP_ACP, 0, strret.u.cStr, -1, NULL, 0);
+        item->pszText = CoTaskMemAlloc(len * sizeof(WCHAR));
+        MultiByteToWideChar(CP_ACP, 0, strret.u.cStr, -1, item->pszText, len);
+    }
     default:
         WINE_FIXME("Unimplemented STRRET type:%u\n",strret.uType);
         break;
-- 
1.8.1.2


More information about the wine-patches mailing list