From 67bf5c7131487a1b686004e9bc8b70f78af7e160 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 21 Jun 2019 08:49:30 +0200 Subject: [PATCH] storage: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/storage.dll16/Makefile.in | 2 +- dlls/storage.dll16/storage.c | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/dlls/storage.dll16/Makefile.in b/dlls/storage.dll16/Makefile.in index f390aca7dd9..b7a2045d703 100644 --- a/dlls/storage.dll16/Makefile.in +++ b/dlls/storage.dll16/Makefile.in @@ -1,5 +1,5 @@ MODULE = storage.dll16 IMPORTS = uuid ole32 -EXTRADLLFLAGS = -m16 -Wb,--main-module,ole32.dll +EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ole32.dll C_SRCS = storage.c diff --git a/dlls/storage.dll16/storage.c b/dlls/storage.dll16/storage.c index 23e88b42d1a..1bcc72065ce 100644 --- a/dlls/storage.dll16/storage.c +++ b/dlls/storage.dll16/storage.c @@ -21,16 +21,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "config.h" - #include #include #include #include #include -#ifdef HAVE_UNISTD_H -# include -#endif #define NONAMELESSUNION @@ -40,7 +35,6 @@ #include "winerror.h" #include "wine/winbase16.h" #include "wownt32.h" -#include "wine/unicode.h" #include "objbase.h" #include "wine/debug.h" @@ -687,7 +681,7 @@ STORAGE_look_for_named_pps(stream_access16*str,int n,LPOLESTR name) { if (1!=STORAGE_get_pps_entry(str,n,&stde)) return -1; - if (!lstrcmpW(name,stde.pps_rawname)) + if (!wcscmp(name,stde.pps_rawname)) return n; if (stde.pps_prev != -1) { ret=STORAGE_look_for_named_pps(str,stde.pps_prev,name); @@ -778,7 +772,7 @@ STORAGE_init_storage(stream_access16 *str) { stde = (struct storage_pps_entry*)block; MultiByteToWideChar(CP_ACP, 0, "RootEntry", -1, stde->pps_rawname, ARRAY_SIZE(stde->pps_rawname)); - stde->pps_sizeofname = (strlenW(stde->pps_rawname)+1) * sizeof(WCHAR); + stde->pps_sizeofname = (lstrlenW(stde->pps_rawname)+1) * sizeof(WCHAR); stde->pps_type = 5; stde->pps_dir = -1; stde->pps_next = -1; @@ -1752,7 +1746,7 @@ HRESULT CDECL IStorage16_fnCreateStorage(IStorage16 *iface, LPCOLESTR16 pwcsName assert(nPPSEntries == 1); MultiByteToWideChar(CP_ACP, 0, pwcsName, -1, lpstg->stde.pps_rawname, ARRAY_SIZE(lpstg->stde.pps_rawname)); - lpstg->stde.pps_sizeofname = (strlenW(lpstg->stde.pps_rawname)+1)*sizeof(WCHAR); + lpstg->stde.pps_sizeofname = (lstrlenW(lpstg->stde.pps_rawname)+1)*sizeof(WCHAR); lpstg->stde.pps_next = -1; lpstg->stde.pps_prev = -1; lpstg->stde.pps_dir = -1; @@ -1815,7 +1809,7 @@ HRESULT CDECL IStorage16_fnCreateStream(IStorage16 *iface, LPCOLESTR16 pwcsName, assert(nPPSEntries == 1); MultiByteToWideChar(CP_ACP, 0, pwcsName, -1, lpstr->stde.pps_rawname, ARRAY_SIZE(lpstr->stde.pps_rawname)); - lpstr->stde.pps_sizeofname = (strlenW(lpstr->stde.pps_rawname)+1) * sizeof(WCHAR); + lpstr->stde.pps_sizeofname = (lstrlenW(lpstr->stde.pps_rawname)+1) * sizeof(WCHAR); lpstr->stde.pps_next = -1; lpstr->stde.pps_prev = -1; lpstr->stde.pps_dir = -1;