ieframe: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3d15828334
commit
0cc13be47c
|
@ -2,6 +2,8 @@ MODULE = ieframe.dll
|
||||||
IMPORTLIB = ieframe
|
IMPORTLIB = ieframe
|
||||||
IMPORTS = uuid urlmon shell32 comctl32 shlwapi oleaut32 ole32 user32 gdi32 advapi32
|
IMPORTS = uuid urlmon shell32 comctl32 shlwapi oleaut32 ole32 user32 gdi32 advapi32
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
classinfo.c \
|
classinfo.c \
|
||||||
client.c \
|
client.c \
|
||||||
|
|
|
@ -427,7 +427,7 @@ static void update_travellog(DocHost *This)
|
||||||
|
|
||||||
static const WCHAR about_schemeW[] = {'a','b','o','u','t',':'};
|
static const WCHAR about_schemeW[] = {'a','b','o','u','t',':'};
|
||||||
|
|
||||||
if(This->url && !strncmpiW(This->url, about_schemeW, ARRAY_SIZE(about_schemeW))) {
|
if(This->url && !wcsnicmp(This->url, about_schemeW, ARRAY_SIZE(about_schemeW))) {
|
||||||
TRACE("Skipping about URL\n");
|
TRACE("Skipping about URL\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
#include "shdeprecated.h"
|
#include "shdeprecated.h"
|
||||||
#include "docobjectservice.h"
|
#include "docobjectservice.h"
|
||||||
|
|
||||||
#include "wine/unicode.h"
|
|
||||||
#include "wine/heap.h"
|
#include "wine/heap.h"
|
||||||
#include "wine/list.h"
|
#include "wine/list.h"
|
||||||
|
|
||||||
|
@ -342,7 +341,7 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
|
||||||
if(str) {
|
if(str) {
|
||||||
DWORD size;
|
DWORD size;
|
||||||
|
|
||||||
size = (strlenW(str)+1)*sizeof(WCHAR);
|
size = (lstrlenW(str)+1)*sizeof(WCHAR);
|
||||||
ret = heap_alloc(size);
|
ret = heap_alloc(size);
|
||||||
if(ret)
|
if(ret)
|
||||||
memcpy(ret, str, size);
|
memcpy(ret, str, size);
|
||||||
|
@ -353,7 +352,7 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
|
||||||
|
|
||||||
static inline LPWSTR co_strdupW(LPCWSTR str)
|
static inline LPWSTR co_strdupW(LPCWSTR str)
|
||||||
{
|
{
|
||||||
WCHAR *ret = CoTaskMemAlloc((strlenW(str) + 1)*sizeof(WCHAR));
|
WCHAR *ret = CoTaskMemAlloc((lstrlenW(str) + 1)*sizeof(WCHAR));
|
||||||
if (ret)
|
if (ret)
|
||||||
lstrcpyW(ret, str);
|
lstrcpyW(ret, str);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -957,7 +957,7 @@ static BOOL create_ie_window(BOOL nohome, const WCHAR *cmdline)
|
||||||
VARIANT var_url;
|
VARIANT var_url;
|
||||||
int cmdlen;
|
int cmdlen;
|
||||||
|
|
||||||
cmdlen = strlenW(cmdline);
|
cmdlen = lstrlenW(cmdline);
|
||||||
if(cmdlen > 2 && cmdline[0] == '"' && cmdline[cmdlen-1] == '"') {
|
if(cmdlen > 2 && cmdline[0] == '"' && cmdline[cmdlen-1] == '"') {
|
||||||
cmdline++;
|
cmdline++;
|
||||||
cmdlen -= 2;
|
cmdlen -= 2;
|
||||||
|
@ -988,18 +988,18 @@ static HDDEDATA open_dde_url(WCHAR *dde_url)
|
||||||
url = dde_url;
|
url = dde_url;
|
||||||
if(*url == '"') {
|
if(*url == '"') {
|
||||||
url++;
|
url++;
|
||||||
url_end = strchrW(url, '"');
|
url_end = wcschr(url, '"');
|
||||||
if(!url_end) {
|
if(!url_end) {
|
||||||
FIXME("missing string terminator\n");
|
FIXME("missing string terminator\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*url_end = 0;
|
*url_end = 0;
|
||||||
}else {
|
}else {
|
||||||
url_end = strchrW(url, ',');
|
url_end = wcschr(url, ',');
|
||||||
if(url_end)
|
if(url_end)
|
||||||
*url_end = 0;
|
*url_end = 0;
|
||||||
else
|
else
|
||||||
url_end = url + strlenW(url);
|
url_end = url + lstrlenW(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
LIST_FOR_EACH_ENTRY(iter, &ie_list, InternetExplorer, entry) {
|
LIST_FOR_EACH_ENTRY(iter, &ie_list, InternetExplorer, entry) {
|
||||||
|
@ -1149,11 +1149,11 @@ DWORD WINAPI IEWinMain(const WCHAR *cmdline, int nShowWindow)
|
||||||
|
|
||||||
while (cmdline[length] && cmdline[length] != ' ' && cmdline[length] != '\t') length++;
|
while (cmdline[length] && cmdline[length] != ' ' && cmdline[length] != '\t') length++;
|
||||||
|
|
||||||
if (!strncmpiW(cmdline, embeddingW, length))
|
if (!wcsnicmp(cmdline, embeddingW, length))
|
||||||
embedding = TRUE;
|
embedding = TRUE;
|
||||||
else if (!strncmpiW(cmdline, nohomeW, length))
|
else if (!wcsnicmp(cmdline, nohomeW, length))
|
||||||
nohome = TRUE;
|
nohome = TRUE;
|
||||||
else if (!strncmpiW(cmdline, startmanagerW, length))
|
else if (!wcsnicmp(cmdline, startmanagerW, length))
|
||||||
manager = TRUE;
|
manager = TRUE;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -94,15 +94,15 @@ static BOOL run_winemenubuilder( const WCHAR *args )
|
||||||
void *redir;
|
void *redir;
|
||||||
|
|
||||||
GetSystemDirectoryW( app, MAX_PATH - ARRAY_SIZE( menubuilder ));
|
GetSystemDirectoryW( app, MAX_PATH - ARRAY_SIZE( menubuilder ));
|
||||||
strcatW( app, menubuilder );
|
lstrcatW( app, menubuilder );
|
||||||
|
|
||||||
len = (strlenW( app ) + strlenW( args ) + 1) * sizeof(WCHAR);
|
len = (lstrlenW( app ) + lstrlenW( args ) + 1) * sizeof(WCHAR);
|
||||||
buffer = heap_alloc( len );
|
buffer = heap_alloc( len );
|
||||||
if( !buffer )
|
if( !buffer )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
strcpyW( buffer, app );
|
lstrcpyW( buffer, app );
|
||||||
strcatW( buffer, args );
|
lstrcatW( buffer, args );
|
||||||
|
|
||||||
TRACE("starting %s\n",debugstr_w(buffer));
|
TRACE("starting %s\n",debugstr_w(buffer));
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ static BOOL StartLinkProcessor( LPCOLESTR szLink )
|
||||||
if( !buffer )
|
if( !buffer )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
sprintfW( buffer, szFormat, szLink );
|
swprintf( buffer, len / sizeof(WCHAR), szFormat, szLink );
|
||||||
ret = run_winemenubuilder( buffer );
|
ret = run_winemenubuilder( buffer );
|
||||||
heap_free( buffer );
|
heap_free( buffer );
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -521,7 +521,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
|
||||||
int iconindex;
|
int iconindex;
|
||||||
PROPSPEC ps;
|
PROPSPEC ps;
|
||||||
PROPVARIANT pv;
|
PROPVARIANT pv;
|
||||||
iconindex = strtolW(iconindexstring, NULL, 10);
|
iconindex = wcstol(iconindexstring, NULL, 10);
|
||||||
ps.ulKind = PRSPEC_PROPID;
|
ps.ulKind = PRSPEC_PROPID;
|
||||||
ps.u.propid = PID_IS_ICONINDEX;
|
ps.u.propid = PID_IS_ICONINDEX;
|
||||||
pv.vt = VT_I4;
|
pv.vt = VT_I4;
|
||||||
|
|
|
@ -111,7 +111,7 @@ static void set_status_text(BindStatusCallback *This, ULONG statuscode, LPCWSTR
|
||||||
fmt[0] = 0;
|
fmt[0] = 0;
|
||||||
/* the format string must have one "%s" for the str */
|
/* the format string must have one "%s" for the str */
|
||||||
LoadStringW(ieframe_instance, IDS_STATUSFMT_FIRST + statuscode, fmt, IDS_STATUSFMT_MAXLEN);
|
LoadStringW(ieframe_instance, IDS_STATUSFMT_FIRST + statuscode, fmt, IDS_STATUSFMT_MAXLEN);
|
||||||
snprintfW(buffer, ARRAY_SIZE(buffer), fmt, str);
|
swprintf(buffer, ARRAY_SIZE(buffer), fmt, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
V_VT(&arg) = VT_BSTR;
|
V_VT(&arg) = VT_BSTR;
|
||||||
|
@ -466,7 +466,7 @@ static HRESULT WINAPI HttpNegotiate_BeginningTransaction(IHttpNegotiate *iface,
|
||||||
dwReserved, pszAdditionalHeaders);
|
dwReserved, pszAdditionalHeaders);
|
||||||
|
|
||||||
if(This->headers) {
|
if(This->headers) {
|
||||||
int size = (strlenW(This->headers)+1)*sizeof(WCHAR);
|
int size = (lstrlenW(This->headers)+1)*sizeof(WCHAR);
|
||||||
*pszAdditionalHeaders = CoTaskMemAlloc(size);
|
*pszAdditionalHeaders = CoTaskMemAlloc(size);
|
||||||
memcpy(*pszAdditionalHeaders, This->headers, size);
|
memcpy(*pszAdditionalHeaders, This->headers, size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue