From 1d354a90feeb607238a86703f4f33c0727cf8dc5 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 3 Jul 2005 20:12:16 +0000 Subject: [PATCH] fix compile errors svn path=/trunk/; revision=16397 --- reactos/subsys/system/winefile/winefile.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index ef64f5e2b78..c919a12a756 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -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) {