diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-01-27 17:59:51 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-01-27 18:03:38 +0000 |
commit | 514c1ed971dfb9978848ba667598b336ad2943d2 (patch) | |
tree | fa729a9f207d87bb4e3e51c26aaf7bcbb79c7963 | |
parent | b5f9c2be36f935f0009c2d7c40f7fadebf0b7ef8 (diff) |
fdo#73464 - get relation BSTR allocation right.
Change-Id: I270bc9c8e0507f44d2c27639e86002c60f4e2e6d
-rw-r--r-- | winaccessibility/source/UAccCOM/AccRelation.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winaccessibility/source/UAccCOM/AccRelation.cxx b/winaccessibility/source/UAccCOM/AccRelation.cxx index ec528301d82d..81e7fed1e037 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: */ |