From 7727a4859500b524dff011c5326bb1c470e8d60c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 27 Feb 2015 18:01:48 +0300 Subject: [PATCH] scrrun: Support VT_BSTR|VT_BYREF keys. --- dlls/scrrun/dictionary.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/scrrun/dictionary.c b/dlls/scrrun/dictionary.c index 5c1893ac60c..524485b4889 100644 --- a/dlls/scrrun/dictionary.c +++ b/dlls/scrrun/dictionary.c @@ -485,8 +485,9 @@ static HRESULT WINAPI dictionary_get_HashVal(IDictionary *iface, VARIANT *key, V V_VT(hash) = VT_I4; switch (V_VT(key)) { + case VT_BSTR|VT_BYREF: case VT_BSTR: - V_I4(hash) = get_str_hash(V_BSTR(key), This->method); + V_I4(hash) = get_str_hash(get_key_strptr(key), This->method); break; case VT_UI1: V_I4(hash) = get_num_hash(V_UI1(key));