Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
14
Src/Wasabi/api/config/items/attrstr.cpp
Normal file
14
Src/Wasabi/api/config/items/attrstr.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <precomp.h>
|
||||
#include "attrstr.h"
|
||||
|
||||
#include <bfc/memblock.h>
|
||||
|
||||
const wchar_t *_string::getValue()
|
||||
{
|
||||
int l = getDataLen();
|
||||
if (l <= 0) return L"";
|
||||
MemBlock<wchar_t> mb(l+2);
|
||||
getData(mb.getMemory(), l+2);
|
||||
returnval = mb;
|
||||
return returnval;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue