fix compile errors

svn path=/trunk/; revision=16397
This commit is contained in:
Martin Fuchs 2005-07-03 20:12:16 +00:00
parent 7a42053e8b
commit 1d354a90fe

View file

@ -656,6 +656,15 @@ static Entry* read_tree_unix(Root* root, LPCTSTR path, SORT_ORDER sortOrder, HWN
#endif
static void free_strret(STRRET* str)
{
if (str->uType == STRRET_WSTR)
(*Globals.iMalloc->lpVtbl->Free)(Globals.iMalloc, str->UNION_MEMBER(pOleStr));
}
#ifndef UNICODE
static LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)
{
LPCSTR s;
@ -667,17 +676,6 @@ static LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)
return dest;
}
static LPWSTR wcscpyn(LPWSTR dest, LPCWSTR source, size_t count)
{
LPCWSTR s;
LPWSTR d = dest;
for(s=source; count&&(*d++=*s++); )
count--;
return dest;
}
static void get_strretA(STRRET* str, const SHITEMID* shiid, LPSTR buffer, int len)
{
switch(str->uType) {