winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
February 2020
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
874 discussions
Start a n
N
ew thread
Michael Stefaniuc : bcrypt/tests: Get rid of strcmp_wa().
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: 7485362fa13354361fd185a115fa7b866398e70c URL:
https://source.winehq.org/git/wine.git/?a=commit;h=7485362fa13354361fd185a1…
Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Tue Feb 4 21:44:10 2020 +0100 bcrypt/tests: Get rid of strcmp_wa(). Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/bcrypt/tests/bcrypt.c | 45 ++++++++++++++++++--------------------------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/dlls/bcrypt/tests/bcrypt.c b/dlls/bcrypt/tests/bcrypt.c index d26150f469..0dc2085111 100644 --- a/dlls/bcrypt/tests/bcrypt.c +++ b/dlls/bcrypt/tests/bcrypt.c @@ -155,13 +155,6 @@ static void format_hash(const UCHAR *bytes, ULONG size, char *buf) return; } -static int strcmp_wa(const WCHAR *strw, const char *stra) -{ - WCHAR buf[512]; - MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, ARRAY_SIZE(buf)); - return lstrcmpW(strw, buf); -} - #define test_object_length(a) _test_object_length(__LINE__,a) static void _test_object_length(unsigned line, void *handle) { @@ -211,7 +204,7 @@ static void _test_hash_length(unsigned line, void *handle, ULONG exlen) } #define test_alg_name(a,b) _test_alg_name(__LINE__,a,b) -static void _test_alg_name(unsigned line, void *handle, const char *exname) +static void _test_alg_name(unsigned line, void *handle, const WCHAR *exname) { ULONG size = 0xdeadbeef; UCHAR buf[256]; @@ -220,13 +213,14 @@ static void _test_alg_name(unsigned line, void *handle, const char *exname) status = pBCryptGetProperty(handle, BCRYPT_ALGORITHM_NAME, buf, sizeof(buf), &size, 0); ok_(__FILE__,line)(status == STATUS_SUCCESS, "BCryptGetProperty failed: %08x\n", status); - ok_(__FILE__,line)(size == (strlen(exname)+1)*sizeof(WCHAR), "got %u\n", size); - ok_(__FILE__,line)(!strcmp_wa(name, exname), "alg name = %s, expected %s\n", wine_dbgstr_w(name), exname); + ok_(__FILE__,line)(size == (lstrlenW(exname)+1)*sizeof(WCHAR), "got %u\n", size); + ok_(__FILE__,line)(!lstrcmpW(name, exname), "alg name = %s, expected %s\n", wine_dbgstr_w(name), + wine_dbgstr_w(exname)); } struct hash_test { - const char *alg; + const WCHAR *alg; unsigned hash_size; const char *hash; const char *hash2; @@ -239,15 +233,12 @@ static void test_hash(const struct hash_test *test) BCRYPT_ALG_HANDLE alg; BCRYPT_HASH_HANDLE hash; UCHAR buf[512], buf_hmac[1024], hash_buf[128], hmac_hash[128]; - WCHAR alg_name[64]; char str[512]; NTSTATUS ret; ULONG len; - MultiByteToWideChar(CP_ACP, 0, test->alg, -1, alg_name, ARRAY_SIZE(alg_name)); - alg = NULL; - ret = pBCryptOpenAlgorithmProvider(&alg, alg_name, MS_PRIMITIVE_PROVIDER, 0); + ret = pBCryptOpenAlgorithmProvider(&alg, test->alg, MS_PRIMITIVE_PROVIDER, 0); ok(ret == STATUS_SUCCESS, "got %08x\n", ret); ok(alg != NULL, "alg not set\n"); @@ -312,7 +303,7 @@ static void test_hash(const struct hash_test *test) ok(ret == STATUS_SUCCESS, "got %08x\n", ret); alg = NULL; - ret = pBCryptOpenAlgorithmProvider(&alg, alg_name, MS_PRIMITIVE_PROVIDER, BCRYPT_ALG_HANDLE_HMAC_FLAG); + ret = pBCryptOpenAlgorithmProvider(&alg, test->alg, MS_PRIMITIVE_PROVIDER, BCRYPT_ALG_HANDLE_HMAC_FLAG); ok(ret == STATUS_SUCCESS, "got %08x\n", ret); ok(alg != NULL, "alg not set\n"); @@ -380,19 +371,19 @@ static void test_hashes(void) { static const struct hash_test tests[] = { - { "SHA1", 20, + { L"SHA1", 20, "961fa64958818f767707072755d7018dcd278e94", "9314f62ff64197143c91fc86de37e9ae776a3fb8", "2472cf65d0e090618d769d3e46f0d9446cf212da", "b2d2ba8cfd714d474cf0d9622cc5d15e1f53d53f", }, - { "SHA256", 32, + { L"SHA256", 32, "ceb73749c899693706ede1e30c9929b3fd5dd926163831c2fb8bd41e6efb1126", "ea0938c118a7b15954f41b85195f2b42aec3a9429c63f593cfa65c137ffaa986", "34c1aa473a4468a91d06e7cdbc75bc4f93b830ccfc2a47ffd74e8e6ed29e4c72", "55feb7052060bd99e33f36eb0982c7f4856eb6a84fbefe19a1afd9faafc3af6f", }, - { "SHA384", 48, + { L"SHA384", 48, "62b21e90c9022b101671ba1f808f8631a8149f0f12904055839a35c1ca78ae53" "63eed1e743a692d70e0504b0cfd12ef9", "724db7c0bbc51ef1ac3fc793083fc54c0e5c423faec9b11378c01c236b19aaaf" @@ -402,7 +393,7 @@ static void test_hashes(void) "03e1818e5c165a0e54619e513acb06c393e1a6cb0ddbb4036b5f29617b334642" "e6e0be8b214d8508595b17a8c4b4e7db", }, - { "SHA512", 64, + { L"SHA512", 64, "d55ced17163bf5386f2cd9ff21d6fd7fe576a915065c24744d09cfae4ec84ee1" "ef6ef11bfbc5acce3639bab725b50a1fe2c204f8c820d6d7db0df0ecbc49c5ca", "7752d707b54d2b00e7d1c09120d189475b0fd2e31ebb988cf0a01fc8492ddc0b" @@ -412,19 +403,19 @@ static void test_hashes(void) "1487bcecba46ae677622fa499e4cb2f0fdf92f6f3427cba76382d537a06e49c3" "3e70a2fc1fc730092bf21128c3704cc6387f6dfbf7e2f9f315bbb894505a1205", }, - { "MD2", 16, + { L"MD2", 16, "1bb33606ba908912a84221109d29cd7e", "b9a6ad9323b17e2d0cd389dddd6ef78a", "7f05b0638d77f4a27f3a9c4d353cd648", "05980873e6bfdd05dd7b30078de7e42a", }, - { "MD4", 16, + { L"MD4", 16, "74b5db93c0b41e36ca7074338fc0b637", "a14a9ff2059a8c28f47b01e6bc48a1bf", "bc2e8ac4d8248ed21b8d26227a30ea3a", "b609db0eb4b8669db74f2c20099701e4", }, - { "MD5", 16, + { L"MD5", 16, "e2a3e68d23ce348b8f68b3079de3d4c9", "bcdd7ca574342aa9db0e212348eacb16", "7bda029b93fa8d817fcc9e13d6bdf092", @@ -460,7 +451,7 @@ static void test_BcryptHash(void) ok(alg != NULL, "alg not set\n"); test_hash_length(alg, 16); - test_alg_name(alg, "MD5"); + test_alg_name(alg, L"MD5"); memset(md5, 0, sizeof(md5)); ret = pBCryptHash(alg, NULL, 0, (UCHAR *)"test", sizeof("test"), md5, sizeof(md5)); @@ -541,7 +532,7 @@ static void test_BcryptDeriveKeyPBKDF2(void) ok(alg != NULL, "alg not set\n"); test_hash_length(alg, 20); - test_alg_name(alg, "SHA1"); + test_alg_name(alg, L"SHA1"); ret = pBCryptDeriveKeyPBKDF2(alg, rfc6070[0].pwd, rfc6070[0].pwd_len, rfc6070[0].salt, rfc6070[0].salt_len, 0, buf, rfc6070[0].dk_len, 0); @@ -581,7 +572,7 @@ static void test_rng(void) ret = pBCryptGetProperty(alg, BCRYPT_HASH_LENGTH, (UCHAR *)&len, sizeof(len), &size, 0); ok(ret == STATUS_NOT_SUPPORTED, "got %08x\n", ret); - test_alg_name(alg, "RNG"); + test_alg_name(alg, L"RNG"); memset(buf, 0, 16); ret = pBCryptGenRandom(alg, buf, 8, 0); @@ -654,7 +645,7 @@ static void test_aes(void) ok(!lstrcmpW((const WCHAR *)mode, BCRYPT_CHAIN_MODE_GCM), "got %s\n", wine_dbgstr_w((const WCHAR *)mode)); ok(size == 64, "got %u\n", size); - test_alg_name(alg, "AES"); + test_alg_name(alg, L"AES"); ret = pBCryptCloseAlgorithmProvider(alg, 0); ok(ret == STATUS_SUCCESS, "got %08x\n", ret);
1
0
0
0
Alistair Leslie-Hughes : oledb32: Add page for ODBC connections to datalink dialog.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: 9d98733baa68a194ba6ea35c48047b1fa3cd7e53 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=9d98733baa68a194ba6ea35c…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon Feb 3 04:30:13 2020 +0000 oledb32: Add page for ODBC connections to datalink dialog. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/oledb32/dslocator.c | 113 +++++++++++++++++++++++++++++++++++++++++++---- dlls/oledb32/resource.h | 19 ++++++++ dlls/oledb32/version.rc | 26 +++++++++++ po/ar.po | 76 ++++++++++++++++++++++++++++++- po/ast.po | 70 ++++++++++++++++++++++++++++- po/bg.po | 69 ++++++++++++++++++++++++++++- po/ca.po | 76 ++++++++++++++++++++++++++++++- po/cs.po | 76 ++++++++++++++++++++++++++++++- po/da.po | 76 ++++++++++++++++++++++++++++++- po/de.po | 76 ++++++++++++++++++++++++++++++- po/el.po | 62 +++++++++++++++++++++++++- po/en.po | 56 ++++++++++++++++++++++- po/en_US.po | 56 ++++++++++++++++++++++- po/eo.po | 72 +++++++++++++++++++++++++++++- po/es.po | 76 ++++++++++++++++++++++++++++++- po/fa.po | 61 ++++++++++++++++++++++++- po/fi.po | 76 ++++++++++++++++++++++++++++++- po/fr.po | 76 ++++++++++++++++++++++++++++++- po/he.po | 73 +++++++++++++++++++++++++++++- po/hi.po | 56 ++++++++++++++++++++++- po/hr.po | 76 ++++++++++++++++++++++++++++++- po/hu.po | 76 ++++++++++++++++++++++++++++++- po/it.po | 76 ++++++++++++++++++++++++++++++- po/ja.po | 76 ++++++++++++++++++++++++++++++- po/ko.po | 76 ++++++++++++++++++++++++++++++- po/lt.po | 76 ++++++++++++++++++++++++++++++- po/ml.po | 56 ++++++++++++++++++++++- po/nb_NO.po | 76 ++++++++++++++++++++++++++++++- po/nl.po | 76 ++++++++++++++++++++++++++++++- po/or.po | 56 ++++++++++++++++++++++- po/pa.po | 56 ++++++++++++++++++++++- po/pl.po | 76 ++++++++++++++++++++++++++++++- po/pt_BR.po | 76 ++++++++++++++++++++++++++++++- po/pt_PT.po | 76 ++++++++++++++++++++++++++++++- po/rm.po | 59 ++++++++++++++++++++++++- po/ro.po | 76 ++++++++++++++++++++++++++++++- po/ru.po | 76 ++++++++++++++++++++++++++++++- po/si.po | 76 ++++++++++++++++++++++++++++++- po/sk.po | 74 ++++++++++++++++++++++++++++++- po/sl.po | 76 ++++++++++++++++++++++++++++++- po/sr_RS(a)cyrillic.po | 68 +++++++++++++++++++++++++++- po/sr_RS(a)latin.po | 70 ++++++++++++++++++++++++++++- po/sv.po | 76 ++++++++++++++++++++++++++++++- po/ta.po | 56 ++++++++++++++++++++++- po/te.po | 56 ++++++++++++++++++++++- po/th.po | 61 ++++++++++++++++++++++++- po/tr.po | 76 ++++++++++++++++++++++++++++++- po/uk.po | 76 ++++++++++++++++++++++++++++++- po/wa.po | 65 ++++++++++++++++++++++++++- po/wine.pot | 56 ++++++++++++++++++++++- po/zh_CN.po | 76 ++++++++++++++++++++++++++++++- po/zh_TW.po | 76 ++++++++++++++++++++++++++++++- 52 files changed, 3488 insertions(+), 106 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=9d98733baa68a194ba6e…
1
0
0
0
Alexandre Julliard : wmc: Directly implement UTF-8 conversions.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: c2f6714970728914ec0dfc7892f200394b8fa25b URL:
https://source.winehq.org/git/wine.git/?a=commit;h=c2f6714970728914ec0dfc78…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 29 10:39:48 2020 +0100 wmc: Directly implement UTF-8 conversions. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/wmc/lang.c | 2 - tools/wmc/mcl.c | 15 +++++-- tools/wmc/po.c | 18 ++------ tools/wmc/utils.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/wmc/utils.h | 2 + tools/wmc/write.c | 36 ++++++++-------- 6 files changed, 155 insertions(+), 39 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=c2f6714970728914ec0d…
1
0
0
0
Alexandre Julliard : wrc: Directly implement UTF-8 conversions.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: 88abd7cb984f80b4f8788582361236ce331346f0 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=88abd7cb984f80b4f8788582…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 29 10:39:42 2020 +0100 wrc: Directly implement UTF-8 conversions. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/wrc/utils.c | 183 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 156 insertions(+), 27 deletions(-) diff --git a/tools/wrc/utils.c b/tools/wrc/utils.c index a1e07b85b2..15bbde9d74 100644 --- a/tools/wrc/utils.c +++ b/tools/wrc/utils.c @@ -296,12 +296,12 @@ int is_valid_codepage(int id) return IsValidCodePage( id ); } -int wrc_mbstowcs( int codepage, int flags, const char *src, int srclen, WCHAR *dst, int dstlen ) +static int wrc_mbstowcs( int codepage, int flags, const char *src, int srclen, WCHAR *dst, int dstlen ) { return MultiByteToWideChar( codepage, flags, src, srclen, dst, dstlen ); } -int wrc_wcstombs( int codepage, int flags, const WCHAR *src, int srclen, char *dst, int dstlen ) +static int wrc_wcstombs( int codepage, int flags, const WCHAR *src, int srclen, char *dst, int dstlen ) { return WideCharToMultiByte( codepage, flags, src, srclen, dst, dstlen, NULL, NULL ); } @@ -315,25 +315,145 @@ int is_valid_codepage(int cp) return cp == CP_UTF8 || wine_cp_get_table(cp); } -int wrc_mbstowcs( int codepage, int flags, const char *src, int srclen, WCHAR *dst, int dstlen ) +static int wrc_mbstowcs( int codepage, int flags, const char *src, int srclen, WCHAR *dst, int dstlen ) { - if (codepage == CP_UTF8) return wine_utf8_mbstowcs( flags, src, srclen, dst, dstlen ); return wine_cp_mbstowcs( wine_cp_get_table( codepage ), flags, src, srclen, dst, dstlen ); } -int wrc_wcstombs( int codepage, int flags, const WCHAR *src, int srclen, char *dst, int dstlen ) +static int wrc_wcstombs( int codepage, int flags, const WCHAR *src, int srclen, char *dst, int dstlen ) { - if (codepage == CP_UTF8) return wine_utf8_wcstombs( flags, src, srclen, dst, dstlen ); return wine_cp_wcstombs( wine_cp_get_table( codepage ), flags, src, srclen, dst, dstlen, NULL, NULL ); } #endif /* _WIN32 */ +static WCHAR *utf8_to_unicode( const char *src, int srclen, int *dstlen ) +{ + static const char utf8_length[128] = + { + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x80-0x8f */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x90-0x9f */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xa0-0xaf */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xb0-0xbf */ + 0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0xc0-0xcf */ + 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0xd0-0xdf */ + 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, /* 0xe0-0xef */ + 3,3,3,3,3,0,0,0,0,0,0,0,0,0,0,0 /* 0xf0-0xff */ + }; + static const unsigned char utf8_mask[4] = { 0x7f, 0x1f, 0x0f, 0x07 }; + + const char *srcend = src + srclen; + int len, res; + WCHAR *ret, *dst; + + dst = ret = xmalloc( (srclen + 1) * sizeof(WCHAR) ); + while (src < srcend) + { + unsigned char ch = *src++; + if (ch < 0x80) /* special fast case for 7-bit ASCII */ + { + *dst++ = ch; + continue; + } + len = utf8_length[ch - 0x80]; + if (len && src + len <= srcend) + { + res = ch & utf8_mask[len]; + switch (len) + { + case 3: + if ((ch = *src ^ 0x80) >= 0x40) break; + res = (res << 6) | ch; + src++; + if (res < 0x10) break; + case 2: + if ((ch = *src ^ 0x80) >= 0x40) break; + res = (res << 6) | ch; + if (res >= 0x110000 >> 6) break; + src++; + if (res < 0x20) break; + if (res >= 0xd800 >> 6 && res <= 0xdfff >> 6) break; + case 1: + if ((ch = *src ^ 0x80) >= 0x40) break; + res = (res << 6) | ch; + src++; + if (res < 0x80) break; + if (res <= 0xffff) *dst++ = res; + else + { + res -= 0x10000; + *dst++ = 0xd800 | (res >> 10); + *dst++ = 0xdc00 | (res & 0x3ff); + } + continue; + } + } + *dst++ = 0xfffd; + } + *dst = 0; + *dstlen = dst - ret; + return ret; +} + +static char *unicode_to_utf8( const WCHAR *src, int srclen, int *dstlen ) +{ + char *ret, *dst; + + dst = ret = xmalloc( srclen * 3 + 1 ); + for ( ; srclen; srclen--, src++) + { + unsigned int ch = *src; + + if (ch < 0x80) /* 0x00-0x7f: 1 byte */ + { + *dst++ = ch; + continue; + } + if (ch < 0x800) /* 0x80-0x7ff: 2 bytes */ + { + dst[1] = 0x80 | (ch & 0x3f); + ch >>= 6; + dst[0] = 0xc0 | ch; + dst += 2; + continue; + } + if (ch >= 0xd800 && ch <= 0xdbff && srclen > 1 && src[1] >= 0xdc00 && src[1] <= 0xdfff) + { + /* 0x10000-0x10ffff: 4 bytes */ + ch = 0x10000 + ((ch & 0x3ff) << 10) + (src[1] & 0x3ff); + dst[3] = 0x80 | (ch & 0x3f); + ch >>= 6; + dst[2] = 0x80 | (ch & 0x3f); + ch >>= 6; + dst[1] = 0x80 | (ch & 0x3f); + ch >>= 6; + dst[0] = 0xf0 | ch; + dst += 4; + src++; + srclen--; + continue; + } + if (ch >= 0xd800 && ch <= 0xdfff) ch = 0xfffd; /* invalid surrogate pair */ + + /* 0x800-0xffff: 3 bytes */ + dst[2] = 0x80 | (ch & 0x3f); + ch >>= 6; + dst[1] = 0x80 | (ch & 0x3f); + ch >>= 6; + dst[0] = 0xe0 | ch; + dst += 3; + } + *dst = 0; + *dstlen = dst - ret; + return ret; +} + string_t *convert_string(const string_t *str, enum str_e type, int codepage) { string_t *ret = xmalloc(sizeof(*ret)); int res; + ret->type = type; ret->loc = str->loc; if (!codepage && str->type != type) @@ -341,27 +461,33 @@ string_t *convert_string(const string_t *str, enum str_e type, int codepage) if((str->type == str_char) && (type == str_unicode)) { - ret->type = str_unicode; - ret->size = wrc_mbstowcs( codepage, 0, str->str.cstr, str->size, NULL, 0 ); - ret->str.wstr = xmalloc( (ret->size+1) * sizeof(WCHAR) ); - res = wrc_mbstowcs( codepage, MB_ERR_INVALID_CHARS, str->str.cstr, str->size, - ret->str.wstr, ret->size ); - if (res == -2) - parser_error( "Invalid character in string '%.*s' for codepage %u", - str->size, str->str.cstr, codepage ); - ret->str.wstr[ret->size] = 0; + if (codepage == CP_UTF8) + ret->str.wstr = utf8_to_unicode( str->str.cstr, str->size, &ret->size ); + else + { + ret->str.wstr = xmalloc( (str->size + 1) * sizeof(WCHAR) ); + res = wrc_mbstowcs( codepage, MB_ERR_INVALID_CHARS, str->str.cstr, str->size, + ret->str.wstr, str->size ); + if (res == -2) + parser_error( "Invalid character in string '%.*s' for codepage %u", + str->size, str->str.cstr, codepage ); + ret->size = res; + ret->str.wstr[ret->size] = 0; + } } else if((str->type == str_unicode) && (type == str_char)) { - ret->type = str_char; - ret->size = wrc_wcstombs( codepage, 0, str->str.wstr, str->size, NULL, 0 ); - ret->str.cstr = xmalloc( ret->size + 1 ); - wrc_wcstombs( codepage, 0, str->str.wstr, str->size, ret->str.cstr, ret->size ); - ret->str.cstr[ret->size] = 0; + if (codepage == CP_UTF8) + ret->str.cstr = unicode_to_utf8( str->str.wstr, str->size, &ret->size ); + else + { + ret->str.cstr = xmalloc( str->size * 2 + 1 ); + ret->size = wrc_wcstombs( codepage, 0, str->str.wstr, str->size, ret->str.cstr, str->size * 2 ); + ret->str.cstr[ret->size] = 0; + } } else if(str->type == str_unicode) { - ret->type = str_unicode; ret->size = str->size; ret->str.wstr = xmalloc(sizeof(WCHAR)*(ret->size+1)); memcpy( ret->str.wstr, str->str.wstr, ret->size * sizeof(WCHAR) ); @@ -369,7 +495,6 @@ string_t *convert_string(const string_t *str, enum str_e type, int codepage) } else /* str->type == str_char */ { - ret->type = str_char; ret->size = str->size; ret->str.cstr = xmalloc( ret->size + 1 ); memcpy( ret->str.cstr, str->str.cstr, ret->size ); @@ -389,22 +514,26 @@ void free_string(string_t *str) /* check if the string is valid utf8 despite a different codepage being in use */ int check_valid_utf8( const string_t *str, int codepage ) { - unsigned int i; + int i, count; + WCHAR *wstr; if (!check_utf8) return 0; if (!codepage) return 0; if (codepage == CP_UTF8) return 0; if (!is_valid_codepage( codepage )) return 0; - for (i = 0; i < str->size; i++) + for (i = count = 0; i < str->size; i++) { if ((unsigned char)str->str.cstr[i] >= 0xf5) goto done; - if ((unsigned char)str->str.cstr[i] >= 0xc2) break; + if ((unsigned char)str->str.cstr[i] >= 0xc2) { count++; continue; } if ((unsigned char)str->str.cstr[i] >= 0x80) goto done; } - if (i == str->size) return 0; /* no 8-bit chars at all */ + if (!count) return 0; /* no 8-bit chars at all */ - if (wrc_mbstowcs( CP_UTF8, MB_ERR_INVALID_CHARS, str->str.cstr, str->size, NULL, 0 ) >= 0) return 1; + wstr = utf8_to_unicode( str->str.cstr, str->size, &count ); + for (i = 0; i < count; i++) if (wstr[i] == 0xfffd) break; + free( wstr ); + return (i == count); done: check_utf8 = 0; /* at least one 8-bit non-utf8 string found, stop checking */
1
0
0
0
Jacek Caban : mshtml/tests: Get rid of is_prefix_wa.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: a98179c0ab7cd7aced1a317177b87af761050842 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=a98179c0ab7cd7aced1a3171…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Feb 4 20:32:32 2020 +0100 mshtml/tests: Get rid of is_prefix_wa. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mshtml/tests/dom.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 2b0a5cde95..c758fb2907 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -563,20 +563,6 @@ static const elem_type_info_t elem_type_infos[] = { {L"tspan", tspan_iids, NULL} }; -static BOOL is_prefix_wa(const WCHAR *strw, const char *prefix) -{ - int len, prefix_len; - CHAR buf[512]; - - len = WideCharToMultiByte(CP_ACP, 0, strw, -1, buf, ARRAY_SIZE(buf), NULL, NULL)-1; - prefix_len = lstrlenA(prefix); - if(len < prefix_len) - return FALSE; - - buf[prefix_len] = 0; - return !lstrcmpA(buf, prefix); -} - static BSTR a2bstr(const char *str) { BSTR ret; @@ -8255,7 +8241,7 @@ static void test_iframe_elem(IHTMLElement *elem) } #define test_stylesheet_csstext(a,b,c) _test_stylesheet_csstext(__LINE__,a,b,c) -static void _test_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet, const char *exstr, BOOL is_todo) +static void _test_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet, const WCHAR *exstr, BOOL is_todo) { BSTR str; HRESULT hres; @@ -8264,7 +8250,7 @@ static void _test_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet, ok_(__FILE__,line)(hres == S_OK, "get_cssText failed: %08x\n", hres); todo_wine_if(is_todo) { if(exstr) - ok_(__FILE__,line)(is_prefix_wa(str, exstr), "cssText = %s\n", wine_dbgstr_w(str)); + ok_(__FILE__,line)(str && !wcsncmp(str, exstr, lstrlenW(exstr)), "cssText = %s\n", wine_dbgstr_w(str)); else ok_(__FILE__,line)(!str, "cssText = %s\n", wine_dbgstr_w(str)); } @@ -8310,13 +8296,13 @@ static void test_stylesheet(IDispatch *disp) ok(href == NULL, "got href != NULL\n"); SysFreeString(href); - test_stylesheet_csstext(stylesheet, ".body {", FALSE); + test_stylesheet_csstext(stylesheet, L".body {", FALSE); set_stylesheet_csstext(stylesheet, ".div { margin-right: 1px; }\n.body { margin-right: 2px; }", TRUE); - test_stylesheet_csstext(stylesheet, ".div {", TRUE); + test_stylesheet_csstext(stylesheet, L".div {", TRUE); set_stylesheet_csstext(stylesheet, "", FALSE); test_stylesheet_csstext(stylesheet, NULL, FALSE); set_stylesheet_csstext(stylesheet, ".div { margin-right: 1px; }", FALSE); - test_stylesheet_csstext(stylesheet, ".div {", FALSE); + test_stylesheet_csstext(stylesheet, L".div {", FALSE); hres = IHTMLStyleSheet_get_rules(stylesheet, &col); ok(hres == S_OK, "get_rules failed: %08x\n", hres);
1
0
0
0
Jacek Caban : jscript: Add GetSourceLineText implementation.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: 150b7391b878aed21e13116d7628adddabf13c0e URL:
https://source.winehq.org/git/wine.git/?a=commit;h=150b7391b878aed21e13116d…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Feb 4 20:28:38 2020 +0100 jscript: Add GetSourceLineText implementation. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/jscript/compile.c | 2 +- dlls/jscript/engine.c | 2 +- dlls/jscript/engine.h | 3 ++- dlls/jscript/error.c | 4 +++- dlls/jscript/jscript.c | 15 ++++++++++++--- dlls/jscript/parser.y | 18 +++++++++++++++--- dlls/jscript/tests/run.c | 9 +++++++-- 7 files changed, 41 insertions(+), 12 deletions(-) diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index 2be5f24fae..61db10cd41 100644 --- a/dlls/jscript/compile.c +++ b/dlls/jscript/compile.c @@ -2521,7 +2521,7 @@ HRESULT compile_script(script_ctx_t *ctx, const WCHAR *code, UINT64 source_conte if(FAILED(hres)) { if(hres != DISP_E_EXCEPTION) throw_error(ctx, hres, NULL); - set_error_location(ctx->ei, compiler.code, compiler.loc, IDS_COMPILATION_ERROR); + set_error_location(ctx->ei, compiler.code, compiler.loc, IDS_COMPILATION_ERROR, NULL); release_bytecode(compiler.code); return DISP_E_EXCEPTION; } diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c index 054b0c7602..f94cfd1e80 100644 --- a/dlls/jscript/engine.c +++ b/dlls/jscript/engine.c @@ -2779,7 +2779,7 @@ static HRESULT unwind_exception(script_ctx_t *ctx, HRESULT exception_hres) frame = ctx->call_ctx; if(exception_hres != DISP_E_EXCEPTION) throw_error(ctx, exception_hres, NULL); - set_error_location(ei, frame->bytecode, frame->bytecode->instrs[frame->ip].loc, IDS_RUNTIME_ERROR); + set_error_location(ei, frame->bytecode, frame->bytecode->instrs[frame->ip].loc, IDS_RUNTIME_ERROR, NULL); while(!frame->except_frame) { DWORD flags; diff --git a/dlls/jscript/engine.h b/dlls/jscript/engine.h index bb991c442e..cad46e12c5 100644 --- a/dlls/jscript/engine.h +++ b/dlls/jscript/engine.h @@ -229,6 +229,7 @@ struct _jsexcept_t { jsstr_t *source; jsstr_t *message; + jsstr_t *line; bytecode_t *code; unsigned loc; @@ -240,7 +241,7 @@ struct _jsexcept_t { void enter_script(script_ctx_t*,jsexcept_t*) DECLSPEC_HIDDEN; HRESULT leave_script(script_ctx_t*,HRESULT) DECLSPEC_HIDDEN; void reset_ei(jsexcept_t*) DECLSPEC_HIDDEN; -void set_error_location(jsexcept_t*,bytecode_t*,unsigned,unsigned) DECLSPEC_HIDDEN; +void set_error_location(jsexcept_t*,bytecode_t*,unsigned,unsigned,jsstr_t*) DECLSPEC_HIDDEN; typedef struct _except_frame_t except_frame_t; struct _parser_ctx_t; diff --git a/dlls/jscript/error.c b/dlls/jscript/error.c index eca6c90138..4d54d74f6c 100644 --- a/dlls/jscript/error.c +++ b/dlls/jscript/error.c @@ -420,7 +420,7 @@ HRESULT throw_error(script_ctx_t *ctx, HRESULT error, const WCHAR *str) return DISP_E_EXCEPTION; } -void set_error_location(jsexcept_t *ei, bytecode_t *code, unsigned loc, unsigned source_id) +void set_error_location(jsexcept_t *ei, bytecode_t *code, unsigned loc, unsigned source_id, jsstr_t *line) { if(is_jscript_error(ei->error)) { if(!ei->source) { @@ -438,6 +438,8 @@ void set_error_location(jsexcept_t *ei, bytecode_t *code, unsigned loc, unsigned ei->code = bytecode_addref(code); ei->loc = loc; + if(line) + ei->line = jsstr_addref(line); } jsdisp_t *create_builtin_error(script_ctx_t *ctx) diff --git a/dlls/jscript/jscript.c b/dlls/jscript/jscript.c index 860fb01cf5..8f97fa818d 100644 --- a/dlls/jscript/jscript.c +++ b/dlls/jscript/jscript.c @@ -211,12 +211,17 @@ static HRESULT WINAPI JScriptError_GetSourceLineText(IActiveScriptError *iface, { JScriptError *This = impl_from_IActiveScriptError(iface); - FIXME("(%p)->(%p)\n", This, source); + TRACE("(%p)->(%p)\n", This, source); if(!source) return E_POINTER; - *source = NULL; - return E_FAIL; + + if(!This->ei.line) { + *source = NULL; + return E_FAIL; + } + + return jsstr_to_bstr(This->ei.line, source); } static const IActiveScriptErrorVtbl JScriptErrorVtbl = { @@ -248,6 +253,10 @@ void reset_ei(jsexcept_t *ei) jsstr_release(ei->message); ei->message = NULL; } + if(ei->line) { + jsstr_release(ei->line); + ei->line = NULL; + } } void enter_script(script_ctx_t *ctx, jsexcept_t *ei) diff --git a/dlls/jscript/parser.y b/dlls/jscript/parser.y index 5a71a84ffa..507369ca20 100644 --- a/dlls/jscript/parser.y +++ b/dlls/jscript/parser.y @@ -1598,12 +1598,24 @@ HRESULT script_parse(script_ctx_t *ctx, struct _compiler_ctx_t *compiler, byteco heap_pool_clear(mark); hres = parser_ctx->hres; if(FAILED(hres)) { - WARN("parser failed around %s\n", - debugstr_w(parser_ctx->begin+20 > parser_ctx->ptr ? parser_ctx->begin : parser_ctx->ptr-20)); + const WCHAR *line_start = code->source + parser_ctx->error_loc, *line_end = line_start; + jsstr_t *line_str; + + while(line_start > code->source && line_start[-1] != '\n') + line_start--; + while(*line_end && *line_end != '\n') + line_end++; + line_str = jsstr_alloc_len(line_start, line_end - line_start); + + WARN("parser failed around %s in line %s\n", + debugstr_w(parser_ctx->begin+20 > parser_ctx->ptr ? parser_ctx->begin : parser_ctx->ptr-20), + debugstr_jsstr(line_str)); throw_error(ctx, hres, NULL); - set_error_location(ctx->ei, code, parser_ctx->error_loc, IDS_COMPILATION_ERROR); + set_error_location(ctx->ei, code, parser_ctx->error_loc, IDS_COMPILATION_ERROR, line_str); parser_release(parser_ctx); + if(line_str) + jsstr_release(line_str); return DISP_E_EXCEPTION; } diff --git a/dlls/jscript/tests/run.c b/dlls/jscript/tests/run.c index 6e2250882d..675bd819ee 100644 --- a/dlls/jscript/tests/run.c +++ b/dlls/jscript/tests/run.c @@ -2232,6 +2232,13 @@ static void test_error_reports(void) NULL, ERROR_TODO_SCODE | ERROR_TODO_DESCRIPTION }, + { + L"f(1\n,\n2,\n ,,3\n);\n", + JS_E_SYNTAX, 3, 1, + L"Microsoft JScript compilation error", + L"Syntax error", + L" ,,3" + }, }; if (!is_lang_english()) @@ -2304,9 +2311,7 @@ static void test_error_reports(void) hres = IActiveScriptError_GetSourceLineText(script_error, &line_text); if (tests[i].line_text) { - todo_wine ok(hres == S_OK, "GetSourceLineText failed: %08x\n", hres); - todo_wine ok(line_text != NULL && !lstrcmpW(line_text, tests[i].line_text), "[%u] GetSourceLineText returned %s expected %s\n", i, wine_dbgstr_w(line_text), wine_dbgstr_w(tests[i].line_text)); }
1
0
0
0
Jacek Caban : widl: Check dispinterfaces for duplicated methods.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: 26ad9a7ba316b36774ea77ca2af64144cea61b7d URL:
https://source.winehq.org/git/wine.git/?a=commit;h=26ad9a7ba316b36774ea77ca…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Feb 4 19:58:51 2020 +0100 widl: Check dispinterfaces for duplicated methods. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/widl/parser.y | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 92b4f8ebd5..3ef8d89ba1 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -2701,6 +2701,25 @@ static void add_explicit_handle_if_necessary(const type_t *iface, var_t *func) static void check_functions(const type_t *iface, int is_inside_library) { const statement_t *stmt; + /* check for duplicates */ + if (is_attr(iface->attrs, ATTR_DISPINTERFACE)) + { + var_list_t *methods = type_dispiface_get_methods(iface); + var_t *func, *func_iter; + + if (methods) LIST_FOR_EACH_ENTRY( func, methods, var_t, entry ) + { + LIST_FOR_EACH_ENTRY( func_iter, methods, var_t, entry ) + { + if (func == func_iter) break; + if (strcmp(func->name, func_iter->name)) continue; + if (is_attr(func->attrs, ATTR_PROPGET) != is_attr(func_iter->attrs, ATTR_PROPGET)) continue; + if (is_attr(func->attrs, ATTR_PROPPUT) != is_attr(func_iter->attrs, ATTR_PROPPUT)) continue; + if (is_attr(func->attrs, ATTR_PROPPUTREF) != is_attr(func_iter->attrs, ATTR_PROPPUTREF)) continue; + error_loc_info(&func->loc_info, "duplicated function \'%s\'\n", func->name); + } + } + } if (is_attr(iface->attrs, ATTR_EXPLICIT_HANDLE)) { STATEMENTS_FOR_EACH_FUNC( stmt, type_iface_get_stmts(iface) )
1
0
0
0
Kevin Puetz : mshtml.idl: Fix IHTMLComputedStyle declaration.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: a727b6b98c2c7ea1bed2bdacd263ff5ae6c0de70 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=a727b6b98c2c7ea1bed2bdac…
Author: Kevin Puetz <PuetzKevinA(a)JohnDeere.com> Date: Tue Feb 4 19:58:45 2020 +0100 mshtml.idl: Fix IHTMLComputedStyle declaration. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/mshtml.idl | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/include/mshtml.idl b/include/mshtml.idl index 67c3712fc4..cbef72e364 100644 --- a/include/mshtml.idl +++ b/include/mshtml.idl @@ -28027,23 +28027,23 @@ interface ILineInfo : IUnknown ] interface IHTMLComputedStyle : IUnknown { - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_BOLD)] HRESULT bold([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_ITALIC)] HRESULT italic([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_UNDERLINE)] HRESULT underline([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_OVERLINE)] HRESULT overline([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_STRIKEOUT)] HRESULT strikeOut([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_SUBSCRIPT)] HRESULT subScript([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_SUPERSCRIPT)] HRESULT superScript([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_EXPLICITFACE)] HRESULT explicitFace([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_FONTWEIGHT)] HRESULT fontWeight([retval, out] long **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_FONTSIZE)] HRESULT fontSize([retval, out] long **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_FONTNAME)] HRESULT fontName([retval, out] WCHAR **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_HASBGCOLOR)] HRESULT hasBgColor([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_TEXTCOLOR)] HRESULT textColor([retval, out] DWORD **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_BACKGROUNDCOLOR)] HRESULT backgroundColor([retval, out] DWORD **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_PREFORMATTED)] HRESULT *preFormatted([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_DIRECTION)] HRESULT direction([retval, out] VARIANT_BOOL **p); - [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_BLOCKDIRECTION)] HRESULT blockDirection([retval, out] VARIANT_BOOL **p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_BOLD)] HRESULT bold([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_ITALIC)] HRESULT italic([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_UNDERLINE)] HRESULT underline([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_OVERLINE)] HRESULT overline([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_STRIKEOUT)] HRESULT strikeOut([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_SUBSCRIPT)] HRESULT subScript([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_SUPERSCRIPT)] HRESULT superScript([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_EXPLICITFACE)] HRESULT explicitFace([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_FONTWEIGHT)] HRESULT fontWeight([retval, out] long *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_FONTSIZE)] HRESULT fontSize([retval, out] long *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_FONTNAME)] HRESULT fontName([retval, out] WCHAR *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_HASBGCOLOR)] HRESULT hasBgColor([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_TEXTCOLOR)] HRESULT textColor([retval, out] DWORD *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_BACKGROUNDCOLOR)] HRESULT backgroundColor([retval, out] DWORD *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_PREFORMATTED)] HRESULT preFormatted([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_DIRECTION)] HRESULT direction([retval, out] VARIANT_BOOL *p); + [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_BLOCKDIRECTION)] HRESULT blockDirection([retval, out] VARIANT_BOOL *p); [propget, id(DISPID_IHTMLCOMPUTEDSTYLE_OL)] HRESULT OL([retval, out] VARIANT_BOOL *p); HRESULT IsEqual([in] IHTMLComputedStyle *pComputedStyle,[out] VARIANT_BOOL *pfEqual); };
1
0
0
0
Donna Whisnant : mshtml.idl: Fix duplicated dispinterface functions.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: ec27f4838c6bef821deddf7d88d498b57f906c46 URL:
https://source.winehq.org/git/wine.git/?a=commit;h=ec27f4838c6bef821deddf7d…
Author: Donna Whisnant <WhisantDonnaE(a)JohnDeere.com> Date: Tue Feb 4 19:58:39 2020 +0100 mshtml.idl: Fix duplicated dispinterface functions. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/mshtml.idl | 135 ----------------------------------------------------- 1 file changed, 135 deletions(-) diff --git a/include/mshtml.idl b/include/mshtml.idl index 0faa605482..67c3712fc4 100644 --- a/include/mshtml.idl +++ b/include/mshtml.idl @@ -11992,18 +11992,6 @@ methods: [propget, id(DISPID_IHTMLLINKELEMENT_TYPE), displaybind, bindable] BSTR type(); - [propput, id(DISPID_IHTMLLINKELEMENT_ONLOAD), displaybind, bindable] - void onload(VARIANT v); - - [propget, id(DISPID_IHTMLLINKELEMENT_ONLOAD), displaybind, bindable] - VARIANT onload(); - - [propput, id(DISPID_IHTMLLINKELEMENT_ONERROR), displaybind, bindable] - void onerror(VARIANT v); - - [propget, id(DISPID_IHTMLLINKELEMENT_ONERROR), displaybind, bindable] - VARIANT onerror(); - [propget, id(DISPID_IHTMLLINKELEMENT_STYLESHEET)] IHTMLStyleSheet *styleSheet(); @@ -12534,18 +12522,6 @@ methods: [propget, id(DISPID_IHTMLFORMELEMENT_NAME)] BSTR name(); - [propput, id(DISPID_IHTMLFORMELEMENT_ONSUBMIT)] - void onsubmit(VARIANT v); - - [propget, id(DISPID_IHTMLFORMELEMENT_ONSUBMIT)] - VARIANT onsubmit(); - - [propput, id(DISPID_IHTMLFORMELEMENT_ONRESET)] - void onreset(VARIANT v); - - [propget, id(DISPID_IHTMLFORMELEMENT_ONRESET)] - VARIANT onreset(); - [id(DISPID_IHTMLFORMELEMENT_SUBMIT)] void submit(); @@ -13315,24 +13291,6 @@ methods: [propget, id(DISPID_IHTMLIMGELEMENT_ALIGN), displaybind, bindable] BSTR align(); - [propput, id(DISPID_IHTMLIMGELEMENT_ONLOAD), displaybind, bindable] - void onload(VARIANT v); - - [propget, id(DISPID_IHTMLIMGELEMENT_ONLOAD), displaybind, bindable] - VARIANT onload(); - - [propput, id(DISPID_IHTMLIMGELEMENT_ONERROR), displaybind, bindable] - void onerror(VARIANT v); - - [propget, id(DISPID_IHTMLIMGELEMENT_ONERROR), displaybind, bindable] - VARIANT onerror(); - - [propput, id(DISPID_IHTMLIMGELEMENT_ONABORT), displaybind, bindable] - void onabort(VARIANT v); - - [propget, id(DISPID_IHTMLIMGELEMENT_ONABORT), displaybind, bindable] - VARIANT onabort(); - [propput, id(DISPID_IHTMLIMGELEMENT_NAME), displaybind, bindable] void name(BSTR v); @@ -13883,12 +13841,6 @@ methods: [propget, id(DISPID_IHTMLBODYELEMENT_ALINK), displaybind, bindable] VARIANT aLink(); - [propput, id(DISPID_IHTMLBODYELEMENT_ONLOAD), displaybind, bindable] - void onload(VARIANT v); - - [propget, id(DISPID_IHTMLBODYELEMENT_ONLOAD), displaybind, bindable] - VARIANT onload(); - [propput, id(DISPID_IHTMLBODYELEMENT_ONUNLOAD), displaybind, bindable] void onunload(VARIANT v); @@ -13901,12 +13853,6 @@ methods: [propget, id(DISPID_IHTMLBODYELEMENT_SCROLL), displaybind, bindable] BSTR scroll(); - [propput, id(DISPID_IHTMLBODYELEMENT_ONSELECT), displaybind, bindable] - void onselect(VARIANT v); - - [propget, id(DISPID_IHTMLBODYELEMENT_ONSELECT), displaybind, bindable] - VARIANT onselect(); - [propput, id(DISPID_IHTMLBODYELEMENT_ONBEFOREUNLOAD), displaybind, bindable] void onbeforeunload(VARIANT v); @@ -14382,9 +14328,6 @@ properties: methods: WINE_HTMLDATAELEMENT_DISPINTERFACE_DECL; - [propget, id(DISPID_IHTMLDOMCONSTRUCTOR_CONSTRUCTOR), hidden] - IDispatch* constructor(); - [propput, id(DISPID_IHTMLAREAELEMENT_SHAPE)] void shape(BSTR v); @@ -14777,12 +14720,6 @@ methods: [propget, id(DISPID_IHTMLSELECTELEMENT_OPTIONS)] IDispatch *options(); - [propput, id(DISPID_IHTMLSELECTELEMENT_ONCHANGE), displaybind, bindable] - void onchange(VARIANT v); - - [propget, id(DISPID_IHTMLSELECTELEMENT_ONCHANGE), displaybind, bindable] - VARIANT onchange(); - [propput, id(DISPID_IHTMLSELECTELEMENT_SELECTEDINDEX)] void selectedIndex(LONG v); @@ -15478,18 +15415,6 @@ methods: [id(DISPID_IHTMLINPUTELEMENT_SELECT)] void select(); - [propput, id(DISPID_IHTMLINPUTELEMENT_ONCHANGE), displaybind, bindable] - void onchange(VARIANT v); - - [propget, id(DISPID_IHTMLINPUTELEMENT_ONCHANGE), displaybind, bindable] - VARIANT onchange(); - - [propput, id(DISPID_IHTMLINPUTELEMENT_ONSELECT), displaybind, bindable] - void onselect(VARIANT v); - - [propget, id(DISPID_IHTMLINPUTELEMENT_ONSELECT), displaybind, bindable] - VARIANT onselect(); - [propput, id(DISPID_IHTMLINPUTELEMENT_DEFAULTVALUE), displaybind, bindable, hidden] void defaultValue(BSTR v); @@ -15586,24 +15511,6 @@ methods: [propget, id(DISPID_IHTMLINPUTELEMENT_ALIGN), displaybind, bindable] BSTR align(); - [propput, id(DISPID_IHTMLINPUTELEMENT_ONLOAD), displaybind, bindable] - void onload(VARIANT v); - - [propget, id(DISPID_IHTMLINPUTELEMENT_ONLOAD), displaybind, bindable] - VARIANT onload(); - - [propput, id(DISPID_IHTMLINPUTELEMENT_ONERROR), displaybind, bindable] - void onerror(VARIANT v); - - [propget, id(DISPID_IHTMLINPUTELEMENT_ONERROR), displaybind, bindable] - VARIANT onerror(); - - [propput, id(DISPID_IHTMLINPUTELEMENT_ONABORT), displaybind, bindable] - void onabort(VARIANT v); - - [propget, id(DISPID_IHTMLINPUTELEMENT_ONABORT), displaybind, bindable] - VARIANT onabort(); - [propput, id(DISPID_IHTMLINPUTELEMENT_WIDTH)] void width(LONG v); @@ -15815,18 +15722,6 @@ methods: [id(DISPID_IHTMLTEXTAREAELEMENT_SELECT)] void select(); - [propput, id(DISPID_IHTMLTEXTAREAELEMENT_ONCHANGE), displaybind, bindable] - void onchange(VARIANT v); - - [propget, id(DISPID_IHTMLTEXTAREAELEMENT_ONCHANGE), displaybind, bindable] - VARIANT onchange(); - - [propput, id(DISPID_IHTMLTEXTAREAELEMENT_ONSELECT), displaybind, bindable] - void onselect(VARIANT v); - - [propget, id(DISPID_IHTMLTEXTAREAELEMENT_ONSELECT), displaybind, bindable] - VARIANT onselect(); - [propput, id(DISPID_IHTMLTEXTAREAELEMENT_READONLY), displaybind, bindable] void readOnly(VARIANT_BOOL v); @@ -26333,12 +26228,6 @@ methods: [propget, id(DISPID_IHTMLSCRIPTELEMENT_DEFER), displaybind, bindable] VARIANT_BOOL defer(); - [propput, id(DISPID_IHTMLSCRIPTELEMENT_ONERROR), displaybind, bindable] - void onerror(VARIANT v); - - [propget, id(DISPID_IHTMLSCRIPTELEMENT_ONERROR), displaybind, bindable] - VARIANT onerror(); - [propput, id(DISPID_IHTMLSCRIPTELEMENT_TYPE), displaybind, bindable] void type(BSTR v); @@ -26719,12 +26608,6 @@ methods: [propget, id(DISPID_IHTMLOBJECTELEMENT_HEIGHT)] VARIANT height(); - [propput, id(DISPID_IHTMLOBJECTELEMENT_ONERROR), displaybind, bindable] - void onerror(VARIANT v); - - [propget, id(DISPID_IHTMLOBJECTELEMENT_ONERROR), displaybind, bindable] - VARIANT onerror(); - [propput, id(DISPID_IHTMLOBJECTELEMENT_ALTHTML)] void altHtml(BSTR v); @@ -27039,12 +26922,6 @@ interface IHTMLFrameBase2 : IDispatch [propget, id(DISPID_IHTMLFRAMEBASE2_CONTENTWINDOW)] \ IHTMLWindow2 *contentWindow(); \ \ - [propput, id(DISPID_IHTMLFRAMEBASE2_ONLOAD), displaybind, bindable] \ - void onload(VARIANT v); \ - \ - [propget, id(DISPID_IHTMLFRAMEBASE2_ONLOAD), displaybind, bindable] \ - VARIANT onload(); \ - \ [propput, id(DISPID_IHTMLFRAMEBASE2_ALLOWTRANSPARENCY)] \ void allowTransparency(VARIANT_BOOL v); \ \ @@ -27422,18 +27299,6 @@ methods: [propget, id(DISPID_IHTMLSTYLEELEMENT_TYPE), displaybind, bindable] BSTR type(); - [propput, id(DISPID_IHTMLSTYLEELEMENT_ONLOAD), displaybind, bindable] - void onload(VARIANT v); - - [propget, id(DISPID_IHTMLSTYLEELEMENT_ONLOAD), displaybind, bindable] - VARIANT onload(); - - [propput, id(DISPID_IHTMLSTYLEELEMENT_ONERROR), displaybind, bindable] - void onerror(VARIANT v); - - [propget, id(DISPID_IHTMLSTYLEELEMENT_ONERROR), displaybind, bindable] - VARIANT onerror(); - [propget, id(DISPID_IHTMLSTYLEELEMENT_STYLESHEET)] IHTMLStyleSheet *styleSheet();
1
0
0
0
Zhiyi Zhang : user32/tests: Add more EnumDisplaySettings tests.
by Alexandre Julliard
04 Feb '20
04 Feb '20
Module: wine Branch: master Commit: 153b82b0b368a9444d2cb79db11c012a0f424e4f URL:
https://source.winehq.org/git/wine.git/?a=commit;h=153b82b0b368a9444d2cb79d…
Author: Zhiyi Zhang <zzhang(a)codeweavers.com> Date: Tue Feb 4 15:54:51 2020 +0800 user32/tests: Add more EnumDisplaySettings tests. Signed-off-by: Zhiyi Zhang <zzhang(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/sysparams.c | 282 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 258 insertions(+), 24 deletions(-) Diff:
https://source.winehq.org/git/wine.git/?a=commitdiff;h=153b82b0b368a9444d2c…
1
0
0
0
← Newer
1
...
73
74
75
76
77
78
79
...
88
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Results per page:
10
25
50
100
200