Kaydet (Commit) 7f2a2d2b authored tarafından Michael Meeks's avatar Michael Meeks

fdo#73464 - get relation BSTR allocation right.

Change-Id: I270bc9c8e0507f44d2c27639e86002c60f4e2e6d
üst 2dd8e2ce
......@@ -206,9 +206,7 @@ BSTR CAccRelation::getRelationTypeBSTR(int type)
{IA2_RELATION_DESCRIBED_BY , 10},
};
USES_CONVERSION;
return (type >= 0 && type <= 10) ? map[type].string : _T("");
return ::SysAllocString((type >= 0 && type <= 10) ? map[type].string : _T(""));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment