| commit | 7f2a2d2b05e64ee425f95d189ed6ef32d8895ab9 | [log] |
|---|---|---|
| author | Michael Meeks <michael.meeks@collabora.com> | Mon Jan 27 17:59:51 2014 +0000 |
| committer | Michael Meeks <michael.meeks@collabora.com> | Mon Jan 27 18:01:05 2014 +0000 |
| tree | 4f857106df984c2bb8463188ba02c96e47e94a43 | |
| parent | 2dd8e2ce5c61fc14035e4a0732194c926539714c [diff] |
fdo#73464 - get relation BSTR allocation right. Change-Id: I270bc9c8e0507f44d2c27639e86002c60f4e2e6d
diff --git a/winaccessibility/source/UAccCOM/AccRelation.cxx b/winaccessibility/source/UAccCOM/AccRelation.cxx index ec52830..81e7fed 100644 --- a/winaccessibility/source/UAccCOM/AccRelation.cxx +++ b/winaccessibility/source/UAccCOM/AccRelation.cxx
@@ -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: */