Nikolay Sivov : scrrun: Support VT_BSTR|VT_BYREF keys.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 2 08:51:51 CST 2015


Module: wine
Branch: master
Commit: 7727a4859500b524dff011c5326bb1c470e8d60c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7727a4859500b524dff011c5326bb1c470e8d60c

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Fri Feb 27 18:01:48 2015 +0300

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 5c1893a..524485b 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));




More information about the wine-cvs mailing list