atl: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
de34d2b966
commit
aeab4af7dd
@ -3,6 +3,8 @@ IMPORTLIB = atl
|
|||||||
IMPORTS = uuid oleaut32 ole32 user32 gdi32 advapi32 shlwapi
|
IMPORTS = uuid oleaut32 ole32 user32 gdi32 advapi32 shlwapi
|
||||||
EXTRADEFS = -D_ATL_VER=_ATL_VER_30
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_30
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
atl.c \
|
atl.c \
|
||||||
atl30.c \
|
atl30.c \
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/heap.h"
|
#include "wine/heap.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
||||||
|
|
||||||
@ -347,7 +346,7 @@ HRESULT WINAPI AtlLoadTypeLib(HINSTANCE inst, LPCOLESTR lpszIndex,
|
|||||||
|
|
||||||
TRACE("(%p %s %p %p)\n", inst, debugstr_w(lpszIndex), pbstrPath, ppTypeLib);
|
TRACE("(%p %s %p %p)\n", inst, debugstr_w(lpszIndex), pbstrPath, ppTypeLib);
|
||||||
|
|
||||||
index_len = lpszIndex ? strlenW(lpszIndex) : 0;
|
index_len = lpszIndex ? lstrlenW(lpszIndex) : 0;
|
||||||
path = heap_alloc((MAX_PATH+index_len)*sizeof(WCHAR) + sizeof(tlb_extW));
|
path = heap_alloc((MAX_PATH+index_len)*sizeof(WCHAR) + sizeof(tlb_extW));
|
||||||
if(!path)
|
if(!path)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#include "atlwin.h"
|
#include "atlwin.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
||||||
|
|
||||||
@ -314,7 +313,7 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoA(_ATL_MODULEA *pm, _ATL_WNDCLASSINFOA
|
|||||||
|
|
||||||
if (!wci->m_wc.lpszClassName)
|
if (!wci->m_wc.lpszClassName)
|
||||||
{
|
{
|
||||||
snprintf(wci->m_szAutoName, sizeof(wci->m_szAutoName), "ATL%08lx", (UINT_PTR)wci);
|
sprintf(wci->m_szAutoName, "ATL%08lx", (UINT_PTR)wci);
|
||||||
TRACE("auto-generated class name %s\n", wci->m_szAutoName);
|
TRACE("auto-generated class name %s\n", wci->m_szAutoName);
|
||||||
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
||||||
}
|
}
|
||||||
@ -374,7 +373,7 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
|
|||||||
if (!wci->m_wc.lpszClassName)
|
if (!wci->m_wc.lpszClassName)
|
||||||
{
|
{
|
||||||
static const WCHAR szFormat[] = {'A','T','L','%','0','8','l','x',0};
|
static const WCHAR szFormat[] = {'A','T','L','%','0','8','l','x',0};
|
||||||
snprintfW(wci->m_szAutoName, ARRAY_SIZE(wci->m_szAutoName), szFormat, (UINT_PTR)wci);
|
swprintf(wci->m_szAutoName, ARRAY_SIZE(wci->m_szAutoName), szFormat, (UINT_PTR)wci);
|
||||||
TRACE("auto-generated class name %s\n", debugstr_w(wci->m_szAutoName));
|
TRACE("auto-generated class name %s\n", debugstr_w(wci->m_szAutoName));
|
||||||
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
wci->m_wc.lpszClassName = wci->m_szAutoName;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#include "atlwin.h"
|
#include "atlwin.h"
|
||||||
#include "shlwapi.h"
|
#include "shlwapi.h"
|
||||||
|
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
||||||
|
|
||||||
@ -1022,7 +1021,7 @@ static enum content get_content_type(LPCOLESTR name, CLSID *control_id)
|
|||||||
return IsURL;
|
return IsURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strncmpiW(name, mshtml_prefixW, 7))
|
if (!wcsnicmp(name, mshtml_prefixW, 7))
|
||||||
{
|
{
|
||||||
FIXME("mshtml prefix not implemented\n");
|
FIXME("mshtml prefix not implemented\n");
|
||||||
*control_id = CLSID_WebBrowser;
|
*control_id = CLSID_WebBrowser;
|
||||||
@ -1210,16 +1209,16 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
|
|||||||
if ( GET_WORD(src) == 0xFFFF ) /* menu */
|
if ( GET_WORD(src) == 0xFFFF ) /* menu */
|
||||||
src += 2;
|
src += 2;
|
||||||
else
|
else
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
if ( GET_WORD(src) == 0xFFFF ) /* class */
|
if ( GET_WORD(src) == 0xFFFF ) /* class */
|
||||||
src += 2;
|
src += 2;
|
||||||
else
|
else
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
src += strlenW(src) + 1; /* title */
|
src += lstrlenW(src) + 1; /* title */
|
||||||
if ( style & (DS_SETFONT | DS_SHELLFONT) )
|
if ( style & (DS_SETFONT | DS_SHELLFONT) )
|
||||||
{
|
{
|
||||||
src += 3;
|
src += 3;
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ext = FALSE;
|
ext = FALSE;
|
||||||
@ -1230,16 +1229,16 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
|
|||||||
if ( GET_WORD(src) == 0xFFFF ) /* menu */
|
if ( GET_WORD(src) == 0xFFFF ) /* menu */
|
||||||
src += 2;
|
src += 2;
|
||||||
else
|
else
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
if ( GET_WORD(src) == 0xFFFF ) /* class */
|
if ( GET_WORD(src) == 0xFFFF ) /* class */
|
||||||
src += 2;
|
src += 2;
|
||||||
else
|
else
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
src += strlenW(src) + 1; /* title */
|
src += lstrlenW(src) + 1; /* title */
|
||||||
if ( style & DS_SETFONT )
|
if ( style & DS_SETFONT )
|
||||||
{
|
{
|
||||||
src++;
|
src++;
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PUT_BLOCK(tmp, src-tmp);
|
PUT_BLOCK(tmp, src-tmp);
|
||||||
@ -1262,14 +1261,14 @@ static LPDLGTEMPLATEW AX_ConvertDialogTemplate(LPCDLGTEMPLATEW src_tmpl)
|
|||||||
src += 2;
|
src += 2;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
src += strlenW(src) + 1;
|
src += lstrlenW(src) + 1;
|
||||||
}
|
}
|
||||||
src += strlenW(src) + 1; /* title */
|
src += lstrlenW(src) + 1; /* title */
|
||||||
if ( GET_WORD(tmp) == '{' ) /* all this mess created because of this line */
|
if ( GET_WORD(tmp) == '{' ) /* all this mess created because of this line */
|
||||||
{
|
{
|
||||||
static const WCHAR AtlAxWin[] = {'A','t','l','A','x','W','i','n', 0};
|
static const WCHAR AtlAxWin[] = {'A','t','l','A','x','W','i','n', 0};
|
||||||
PUT_BLOCK(AtlAxWin, ARRAY_SIZE(AtlAxWin));
|
PUT_BLOCK(AtlAxWin, ARRAY_SIZE(AtlAxWin));
|
||||||
PUT_BLOCK(tmp, strlenW(tmp)+1);
|
PUT_BLOCK(tmp, lstrlenW(tmp)+1);
|
||||||
} else
|
} else
|
||||||
PUT_BLOCK(tmp, src-tmp);
|
PUT_BLOCK(tmp, src-tmp);
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include "atlbase.h"
|
#include "atlbase.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
||||||
|
|
||||||
@ -107,7 +106,7 @@ static HRESULT get_word(LPCOLESTR *str, strbuf *buf)
|
|||||||
buf->len = 0;
|
buf->len = 0;
|
||||||
buf->str[0] = '\0';
|
buf->str[0] = '\0';
|
||||||
|
|
||||||
while(isspaceW(*iter2))
|
while(iswspace(*iter2))
|
||||||
iter2++;
|
iter2++;
|
||||||
iter = iter2;
|
iter = iter2;
|
||||||
if(!*iter) {
|
if(!*iter) {
|
||||||
@ -119,7 +118,7 @@ static HRESULT get_word(LPCOLESTR *str, strbuf *buf)
|
|||||||
strbuf_write(iter++, buf, 1);
|
strbuf_write(iter++, buf, 1);
|
||||||
}else if(*iter == '\'') {
|
}else if(*iter == '\'') {
|
||||||
iter2 = ++iter;
|
iter2 = ++iter;
|
||||||
iter = strchrW(iter, '\'');
|
iter = wcschr(iter, '\'');
|
||||||
if(!iter) {
|
if(!iter) {
|
||||||
WARN("Unexpected end of script\n");
|
WARN("Unexpected end of script\n");
|
||||||
*str = iter;
|
*str = iter;
|
||||||
@ -128,12 +127,12 @@ static HRESULT get_word(LPCOLESTR *str, strbuf *buf)
|
|||||||
strbuf_write(iter2, buf, iter-iter2);
|
strbuf_write(iter2, buf, iter-iter2);
|
||||||
iter++;
|
iter++;
|
||||||
}else {
|
}else {
|
||||||
while(*iter && !isspaceW(*iter))
|
while(*iter && !iswspace(*iter))
|
||||||
iter++;
|
iter++;
|
||||||
strbuf_write(iter2, buf, iter-iter2);
|
strbuf_write(iter2, buf, iter-iter2);
|
||||||
}
|
}
|
||||||
|
|
||||||
while(isspaceW(*iter))
|
while(iswspace(*iter))
|
||||||
iter++;
|
iter++;
|
||||||
*str = iter;
|
*str = iter;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
@ -145,14 +144,14 @@ static HRESULT do_preprocess(const Registrar *This, LPCOLESTR data, strbuf *buf)
|
|||||||
rep_list *rep_iter;
|
rep_list *rep_iter;
|
||||||
static const WCHAR wstr[] = {'%',0};
|
static const WCHAR wstr[] = {'%',0};
|
||||||
|
|
||||||
iter = strchrW(data, '%');
|
iter = wcschr(data, '%');
|
||||||
while(iter) {
|
while(iter) {
|
||||||
strbuf_write(iter2, buf, iter-iter2);
|
strbuf_write(iter2, buf, iter-iter2);
|
||||||
|
|
||||||
iter2 = ++iter;
|
iter2 = ++iter;
|
||||||
if(!*iter2)
|
if(!*iter2)
|
||||||
return DISP_E_EXCEPTION;
|
return DISP_E_EXCEPTION;
|
||||||
iter = strchrW(iter2, '%');
|
iter = wcschr(iter2, '%');
|
||||||
if(!iter)
|
if(!iter)
|
||||||
return DISP_E_EXCEPTION;
|
return DISP_E_EXCEPTION;
|
||||||
|
|
||||||
@ -161,7 +160,7 @@ static HRESULT do_preprocess(const Registrar *This, LPCOLESTR data, strbuf *buf)
|
|||||||
}else {
|
}else {
|
||||||
for(rep_iter = This->rep; rep_iter; rep_iter = rep_iter->next) {
|
for(rep_iter = This->rep; rep_iter; rep_iter = rep_iter->next) {
|
||||||
if(rep_iter->key_len == iter-iter2
|
if(rep_iter->key_len == iter-iter2
|
||||||
&& !strncmpiW(iter2, rep_iter->key, rep_iter->key_len))
|
&& !wcsnicmp(iter2, rep_iter->key, rep_iter->key_len))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(!rep_iter) {
|
if(!rep_iter) {
|
||||||
@ -173,7 +172,7 @@ static HRESULT do_preprocess(const Registrar *This, LPCOLESTR data, strbuf *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
iter2 = ++iter;
|
iter2 = ++iter;
|
||||||
iter = strchrW(iter, '%');
|
iter = wcschr(iter, '%');
|
||||||
}
|
}
|
||||||
|
|
||||||
strbuf_write(iter2, buf, -1);
|
strbuf_write(iter2, buf, -1);
|
||||||
@ -280,7 +279,7 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
|
|||||||
hres = get_word(&iter, buf);
|
hres = get_word(&iter, buf);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
break;
|
break;
|
||||||
dw = atoiW(buf->str);
|
dw = wcstol(buf->str, NULL, 10);
|
||||||
lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_DWORD,
|
lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_DWORD,
|
||||||
(PBYTE)&dw, sizeof(dw));
|
(PBYTE)&dw, sizeof(dw));
|
||||||
if(lres != ERROR_SUCCESS) {
|
if(lres != ERROR_SUCCESS) {
|
||||||
@ -305,14 +304,14 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
|
|||||||
}
|
}
|
||||||
for(i = 0; i < count && buf->str[2*i]; i++) {
|
for(i = 0; i < count && buf->str[2*i]; i++) {
|
||||||
WCHAR digits[3];
|
WCHAR digits[3];
|
||||||
if(!isxdigitW(buf->str[2*i]) || !isxdigitW(buf->str[2*i + 1])) {
|
if(!iswxdigit(buf->str[2*i]) || !iswxdigit(buf->str[2*i + 1])) {
|
||||||
hres = E_FAIL;
|
hres = E_FAIL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
digits[0] = buf->str[2*i];
|
digits[0] = buf->str[2*i];
|
||||||
digits[1] = buf->str[2*i + 1];
|
digits[1] = buf->str[2*i + 1];
|
||||||
digits[2] = 0;
|
digits[2] = 0;
|
||||||
bytes[i] = (BYTE) strtoulW(digits, NULL, 16);
|
bytes[i] = (BYTE) wcstoul(digits, NULL, 16);
|
||||||
}
|
}
|
||||||
if(SUCCEEDED(hres)) {
|
if(SUCCEEDED(hres)) {
|
||||||
lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_BINARY,
|
lres = RegSetValueExW(hkey, name.len ? name.str : NULL, 0, REG_BINARY,
|
||||||
@ -344,7 +343,7 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(key_type != IS_VAL && key_type != DO_DELETE && *iter == '{' && isspaceW(iter[1])) {
|
if(key_type != IS_VAL && key_type != DO_DELETE && *iter == '{' && iswspace(iter[1])) {
|
||||||
hres = get_word(&iter, buf);
|
hres = get_word(&iter, buf);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
break;
|
break;
|
||||||
|
@ -4,6 +4,8 @@ IMPORTS = uuid ole32 oleaut32 user32 gdi32 advapi32 shlwapi
|
|||||||
EXTRADEFS = -D_ATL_VER=_ATL_VER_100
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_100
|
||||||
PARENTSRC = ../atl
|
PARENTSRC = ../atl
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
atl.c \
|
atl.c \
|
||||||
atl_ax.c \
|
atl_ax.c \
|
||||||
|
@ -3,6 +3,8 @@ IMPORTS = oleaut32 ole32 user32 gdi32 advapi32 uuid shlwapi
|
|||||||
EXTRADEFS = -D_ATL_VER=_ATL_VER_110
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_110
|
||||||
PARENTSRC = ../atl
|
PARENTSRC = ../atl
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
atl.c \
|
atl.c \
|
||||||
atl_ax.c \
|
atl_ax.c \
|
||||||
|
@ -4,6 +4,8 @@ IMPORTS = oleaut32 user32 ole32 gdi32 advapi32 uuid shlwapi
|
|||||||
EXTRADEFS = -D_ATL_VER=_ATL_VER_80
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_80
|
||||||
PARENTSRC = ../atl
|
PARENTSRC = ../atl
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
atl.c \
|
atl.c \
|
||||||
atl80.c \
|
atl80.c \
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include "atlbase.h"
|
#include "atlbase.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
WINE_DEFAULT_DEBUG_CHANNEL(atl);
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@ IMPORTS = oleaut32 user32 ole32 gdi32 advapi32 uuid shlwapi
|
|||||||
EXTRADEFS = -D_ATL_VER=_ATL_VER_90
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_90
|
||||||
PARENTSRC = ../atl
|
PARENTSRC = ../atl
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
atl.c \
|
atl.c \
|
||||||
atl_ax.c \
|
atl_ax.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user