From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Wasabi/api/config/items/attrstr.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Src/Wasabi/api/config/items/attrstr.cpp (limited to 'Src/Wasabi/api/config/items/attrstr.cpp') diff --git a/Src/Wasabi/api/config/items/attrstr.cpp b/Src/Wasabi/api/config/items/attrstr.cpp new file mode 100644 index 00000000..1209e2f3 --- /dev/null +++ b/Src/Wasabi/api/config/items/attrstr.cpp @@ -0,0 +1,14 @@ +#include +#include "attrstr.h" + +#include + +const wchar_t *_string::getValue() +{ + int l = getDataLen(); + if (l <= 0) return L""; + MemBlock mb(l+2); + getData(mb.getMemory(), l+2); + returnval = mb; + return returnval; +} -- cgit