diff options
Diffstat (limited to 'CPP/Windows/PropVariant.cpp')
-rw-r--r-- | CPP/Windows/PropVariant.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CPP/Windows/PropVariant.cpp b/CPP/Windows/PropVariant.cpp index 9e36c634..e95cbd2b 100644 --- a/CPP/Windows/PropVariant.cpp +++ b/CPP/Windows/PropVariant.cpp @@ -40,7 +40,10 @@ HRESULT PropVarEm_Set_Str(PROPVARIANT *p, const char *s) throw() { p->bstrVal = AllocBstrFromAscii(s); if (p->bstrVal) + { + p->vt = VT_BSTR; return S_OK; + } p->vt = VT_ERROR; p->scode = E_OUTOFMEMORY; return E_OUTOFMEMORY; |