fix compile errors
[reactos.git] / reactos / subsys / system / winefile / winefile.c
index ef64f5e..c919a12 100644 (file)
@@ -656,21 +656,19 @@ static Entry* read_tree_unix(Root* root, LPCTSTR path, SORT_ORDER sortOrder, HWN
 #endif
 
 
-static LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)
+static void free_strret(STRRET* str)
 {
- LPCSTR s;
- LPSTR d = dest;
+       if (str->uType == STRRET_WSTR)
+               (*Globals.iMalloc->lpVtbl->Free)(Globals.iMalloc, str->UNION_MEMBER(pOleStr));
+}
 
- for(s=source; count&&(*d++=*s++); )
-  count--;
 
- return dest;
-}
+#ifndef UNICODE
 
-static LPWSTR wcscpyn(LPWSTR dest, LPCWSTR source, size_t count)
+static LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)
 {
- LPCWSTR s;
- LPWSTR d = dest;
+ LPCSTR s;
+ LPSTR d = dest;
 
  for(s=source; count&&(*d++=*s++); )
   count--;