scrrun: Support VT_BSTR|VT_BYREF keys.
This commit is contained in:
parent
5f41a746e9
commit
7727a48595
|
@ -485,8 +485,9 @@ static HRESULT WINAPI dictionary_get_HashVal(IDictionary *iface, VARIANT *key, V
|
||||||
V_VT(hash) = VT_I4;
|
V_VT(hash) = VT_I4;
|
||||||
switch (V_VT(key))
|
switch (V_VT(key))
|
||||||
{
|
{
|
||||||
|
case VT_BSTR|VT_BYREF:
|
||||||
case VT_BSTR:
|
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;
|
break;
|
||||||
case VT_UI1:
|
case VT_UI1:
|
||||||
V_I4(hash) = get_num_hash(V_UI1(key));
|
V_I4(hash) = get_num_hash(V_UI1(key));
|
||||||
|
|
Loading…
Reference in New Issue