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
March 2010
----- 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
3 participants
919 discussions
Start a n
N
ew thread
Juan Lang : rsaenh: Don't return salt for algorithms that don't support it.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: 1991ff2a0cf5d10588d91fde83a602d5faf39cbc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1991ff2a0cf5d10588d91fde8…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Tue Mar 30 12:05:25 2010 -0700 rsaenh: Don't return salt for algorithms that don't support it. --- dlls/rsaenh/rsaenh.c | 12 ++++++++++-- dlls/rsaenh/tests/rsaenh.c | 2 -- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index d35805a..8a5be99 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -3513,8 +3513,16 @@ BOOL WINAPI RSAENH_CPGetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam pCryptKey->dwBlockLen); case KP_SALT: - return copy_param(pbData, pdwDataLen, - &pCryptKey->abKeyValue[pCryptKey->dwKeyLen], pCryptKey->dwSaltLen); + switch (pCryptKey->aiAlgid) { + case CALG_RC2: + case CALG_RC4: + return copy_param(pbData, pdwDataLen, + &pCryptKey->abKeyValue[pCryptKey->dwKeyLen], + pCryptKey->dwSaltLen); + default: + SetLastError(NTE_BAD_KEY); + return FALSE; + } case KP_PADDING: dwValue = PKCS5_PADDING; diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 53fc0d6..b4bdcfa 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -744,7 +744,6 @@ static void test_aes(int keylen) /* AES provider doesn't support salt */ result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); - todo_wine ok(!result && (GetLastError() == NTE_BAD_KEY || GetLastError() == ERROR_NO_TOKEN /* Win7 */), "expected NTE_BAD_KEY or ERROR_NO_TOKEN, got %08x\n", GetLastError()); @@ -1742,7 +1741,6 @@ static void test_rsa_encrypt(void) /* An RSA key doesn't support salt */ result = CryptGetKeyParam(hRSAKey, KP_SALT, NULL, &dwLen, 0); - todo_wine ok(!result && GetLastError() == NTE_BAD_KEY, "expected NTE_BAD_KEY, got %08x\n", GetLastError());
1
0
0
0
Juan Lang : rsaenh: Support setting salt via KP_SALT (resend).
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: c5a6b7b36674e8b7f7dc687b01773b88fa7d7312 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c5a6b7b36674e8b7f7dc687b0…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Tue Mar 30 10:26:48 2010 -0700 rsaenh: Support setting salt via KP_SALT (resend). --- dlls/rsaenh/rsaenh.c | 27 +++++++++++++++++++++++++++ dlls/rsaenh/tests/rsaenh.c | 3 --- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index 74ad392..d35805a 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -3354,6 +3354,33 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam setup_key(pCryptKey); return TRUE; + case KP_SALT: + switch (pCryptKey->aiAlgid) { + case CALG_RC2: + case CALG_RC4: + if (!pbData) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + /* MSDN: the base provider always sets eleven bytes of + * salt value. + */ + memcpy(pCryptKey->abKeyValue + pCryptKey->dwKeyLen, + pbData, 11); + pCryptKey->dwSaltLen = 11; + setup_key(pCryptKey); + /* Strange but true: salt length reset to 0 after setting + * it via KP_SALT. + */ + pCryptKey->dwSaltLen = 0; + break; + default: + SetLastError(NTE_BAD_KEY); + return FALSE; + } + return TRUE; + case KP_SALT_EX: { CRYPT_INTEGER_BLOB *blob = (CRYPT_INTEGER_BLOB *)pbData; diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 9e17531..53fc0d6 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -986,13 +986,11 @@ static void test_rc2(void) /* Setting the salt also succeeds... */ result = CryptSetKeyParam(hKey, KP_SALT, pbData, 0); - todo_wine ok(result, "setting salt failed: %08x\n", GetLastError()); /* but the resulting salt length is now zero? */ dwLen = 0; result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); ok(result, "%08x\n", GetLastError()); - todo_wine ok(dwLen == 0, "unexpected salt length %d\n", dwLen); /* What sizes salt can I set? */ salt.pbData = pbData; @@ -1154,7 +1152,6 @@ static void test_rc4(void) /* Setting the salt also succeeds... */ result = CryptSetKeyParam(hKey, KP_SALT, pbData, 0); - todo_wine ok(result, "setting salt failed: %08x\n", GetLastError()); /* but the resulting salt length is now zero? */ dwLen = 0;
1
0
0
0
Juan Lang : rsaenh: Add tests of KP_SALT parameter.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: ece32e7f127dfb039da341515cbe87c13f91c632 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ece32e7f127dfb039da341515…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Tue Mar 30 12:03:31 2010 -0700 rsaenh: Add tests of KP_SALT parameter. --- dlls/rsaenh/tests/rsaenh.c | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 94b1ed0..9e17531 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -493,6 +493,10 @@ static void test_block_cipher_modes(void) result = CryptSetKeyParam(hKey, KP_MODE, (BYTE*)&dwMode, 0); ok(result, "%08x\n", GetLastError()); + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + ok(result, "%08x\n", GetLastError()); + ok(dwLen == 11 || broken(dwLen == 0 /* Win9x/NT4 */), "unexpected salt length %d\n", dwLen); + dwLen = 23; result = CryptEncrypt(hKey, 0, TRUE, 0, NULL, &dwLen, 24); ok(result, "CryptEncrypt failed: %08x\n", GetLastError()); @@ -738,6 +742,12 @@ static void test_aes(int keylen) for (i=0; i<sizeof(pbData); i++) pbData[i] = (unsigned char)i; + /* AES provider doesn't support salt */ + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + todo_wine + ok(!result && (GetLastError() == NTE_BAD_KEY || GetLastError() == ERROR_NO_TOKEN /* Win7 */), + "expected NTE_BAD_KEY or ERROR_NO_TOKEN, got %08x\n", GetLastError()); + dwLen = 13; result = CryptEncrypt(hKey, 0, TRUE, 0, pbData, &dwLen, 16); ok(result, "%08x\n", GetLastError()); @@ -944,8 +954,13 @@ static void test_rc2(void) result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); ok(result, "%08x\n", GetLastError()); + /* The default salt length is always 11... */ + ok(dwLen == 11, "unexpected salt length %d\n", dwLen); + /* and the default salt is always empty. */ pbTemp = HeapAlloc(GetProcessHeap(), 0, dwLen); CryptGetKeyParam(hKey, KP_SALT, pbTemp, &dwLen, 0); + for (i=0; i<dwLen; i++) + ok(!pbTemp[i], "unexpected salt value %02x @ %d\n", pbTemp[i], i); HeapFree(GetProcessHeap(), 0, pbTemp); dwLen = sizeof(DWORD); @@ -969,6 +984,16 @@ static void test_rc2(void) result = CryptDecrypt(hKey, 0, TRUE, 0, pbData, &dwDataLen); ok(result, "%08x\n", GetLastError()); + /* Setting the salt also succeeds... */ + result = CryptSetKeyParam(hKey, KP_SALT, pbData, 0); + todo_wine + ok(result, "setting salt failed: %08x\n", GetLastError()); + /* but the resulting salt length is now zero? */ + dwLen = 0; + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + ok(result, "%08x\n", GetLastError()); + todo_wine + ok(dwLen == 0, "unexpected salt length %d\n", dwLen); /* What sizes salt can I set? */ salt.pbData = pbData; for (i=0; i<24; i++) @@ -976,6 +1001,10 @@ static void test_rc2(void) salt.cbData = i; result = CryptSetKeyParam(hKey, KP_SALT_EX, (BYTE *)&salt, 0); ok(result, "setting salt failed for size %d: %08x\n", i, GetLastError()); + /* The returned salt length is the same as the set salt length */ + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + ok(result, "%08x\n", GetLastError()); + ok(dwLen == i, "size %d: unexpected salt length %d\n", i, dwLen); } salt.cbData = 25; SetLastError(0xdeadbeef); @@ -1123,6 +1152,15 @@ static void test_rc4(void) result = CryptDecrypt(hKey, 0, TRUE, 0, pbData, &dwDataLen); ok(result, "%08x\n", GetLastError()); + /* Setting the salt also succeeds... */ + result = CryptSetKeyParam(hKey, KP_SALT, pbData, 0); + todo_wine + ok(result, "setting salt failed: %08x\n", GetLastError()); + /* but the resulting salt length is now zero? */ + dwLen = 0; + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + ok(result, "%08x\n", GetLastError()); + ok(dwLen == 0, "unexpected salt length %d\n", dwLen); /* What sizes salt can I set? */ salt.pbData = pbData; for (i=0; i<24; i++) @@ -1130,6 +1168,10 @@ static void test_rc4(void) salt.cbData = i; result = CryptSetKeyParam(hKey, KP_SALT_EX, (BYTE *)&salt, 0); ok(result, "setting salt failed for size %d: %08x\n", i, GetLastError()); + /* The returned salt length is the same as the set salt length */ + result = CryptGetKeyParam(hKey, KP_SALT, NULL, &dwLen, 0); + ok(result, "%08x\n", GetLastError()); + ok(dwLen == i, "size %d: unexpected salt length %d\n", i, dwLen); } salt.cbData = 25; SetLastError(0xdeadbeef); @@ -1701,6 +1743,12 @@ static void test_rsa_encrypt(void) "expected CRYPT_MAC|CRYPT_WRITE|CRYPT_READ|CRYPT_DECRYPT|CRYPT_ENCRYPT," " got %08x\n", dwVal); + /* An RSA key doesn't support salt */ + result = CryptGetKeyParam(hRSAKey, KP_SALT, NULL, &dwLen, 0); + todo_wine + ok(!result && GetLastError() == NTE_BAD_KEY, + "expected NTE_BAD_KEY, got %08x\n", GetLastError()); + /* The key exchange key's public key may be exported.. */ result = CryptExportKey(hRSAKey, 0, PUBLICKEYBLOB, 0, NULL, &dwLen); ok(result, "%08x\n", GetLastError());
1
0
0
0
Nikolay Sivov : t2embed: Add TTGetEmbeddingType stub.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: b16b122091e98a4f013d4d4279b7bf15e585781f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b16b122091e98a4f013d4d427…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Mar 30 21:48:32 2010 +0400 t2embed: Add TTGetEmbeddingType stub. --- dlls/t2embed/main.c | 7 +++++++ dlls/t2embed/t2embed.spec | 2 +- include/t2embapi.h | 8 ++++++++ 3 files changed, 16 insertions(+), 1 deletions(-) diff --git a/dlls/t2embed/main.c b/dlls/t2embed/main.c index c9c5dc5..a0abc57 100644 --- a/dlls/t2embed/main.c +++ b/dlls/t2embed/main.c @@ -59,3 +59,10 @@ LONG WINAPI TTLoadEmbeddedFont(HANDLE *phFontReference, ULONG ulFlags, return E_API_NOTIMPL; } + +LONG WINAPI TTGetEmbeddingType(HDC hDC, ULONG *status) +{ + FIXME("(%p %p) stub\n", hDC, status); + if (status) *status = EMBED_NOEMBEDDING; + return E_API_NOTIMPL; +} diff --git a/dlls/t2embed/t2embed.spec b/dlls/t2embed/t2embed.spec index ed5d25b..828501c 100644 --- a/dlls/t2embed/t2embed.spec +++ b/dlls/t2embed/t2embed.spec @@ -4,7 +4,7 @@ @ stub TTEmbedFontFromFileA @ stub TTEnableEmbeddingForFacename @ stub TTGetEmbeddedFontInfo -@ stub TTGetEmbeddingType +@ stdcall TTGetEmbeddingType(ptr ptr) @ stub TTIsEmbeddingEnabled @ stub TTIsEmbeddingEnabledForFacename @ stdcall TTLoadEmbeddedFont(ptr long ptr long ptr ptr ptr wstr str ptr) diff --git a/include/t2embapi.h b/include/t2embapi.h index f199764..d0ddef2 100644 --- a/include/t2embapi.h +++ b/include/t2embapi.h @@ -39,6 +39,14 @@ typedef struct LONG WINAPI TTLoadEmbeddedFont(HANDLE*,ULONG,ULONG*,ULONG,ULONG*,READEMBEDPROC, LPVOID,LPWSTR,LPSTR,TTLOADINFO*); +/* embedding privileges */ +#define EMBED_PREVIEWPRINT 1 +#define EMBED_EDITABLE 2 +#define EMBED_INSTALLABLE 3 +#define EMBED_NOEMBEDDING 4 + +LONG WINAPI TTGetEmbeddingType(HDC, ULONG*); + #ifdef __cplusplus } #endif
1
0
0
0
Paul Vriens : ddrawex/tests: Don't crash on some Win98/WinMe boxes.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: d82bd17dd107d14fdadd990d7c733b6934281d2f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d82bd17dd107d14fdadd990d7…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Tue Mar 30 19:44:59 2010 +0200 ddrawex/tests: Don't crash on some Win98/WinMe boxes. --- dlls/ddrawex/tests/surface.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/dlls/ddrawex/tests/surface.c b/dlls/ddrawex/tests/surface.c index d5a26b5..d5d347b 100644 --- a/dlls/ddrawex/tests/surface.c +++ b/dlls/ddrawex/tests/surface.c @@ -261,6 +261,11 @@ static void test_surface_from_dc3(void) ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN; hr = IDirectDraw3_CreateSurface(dd3, &ddsd, &surf1, NULL); + if (hr == DDERR_UNSUPPORTEDMODE) { + win_skip("Unsupported mode\n"); + IDirectDraw3_Release(dd3); + return; + } ok(SUCCEEDED(hr), "CreateSurface failed, hr %#x.\n", hr); hr = IDirectDrawSurface3_QueryInterface(surf1, &IID_IDirectDrawSurface, (void **)&surf3); @@ -323,6 +328,11 @@ static void test_surface_from_dc4(void) ddsd2.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN; hr = IDirectDraw4_CreateSurface(dd4, &ddsd2, &surf4, NULL); + if (hr == DDERR_UNSUPPORTEDMODE) { + win_skip("Unsupported mode\n"); + IDirectDraw3_Release(dd4); + return; + } ok(SUCCEEDED(hr), "CreateSurface failed, hr %#x.\n", hr); hr = IDirectDrawSurface4_QueryInterface(surf4, &IID_IDirectDrawSurface, (void **)&surf1);
1
0
0
0
Frédéric Delanoy : wineboot: Updated French translation.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: 2202bd3e3e0b0292978b0e98eb001b1ce9dc29c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2202bd3e3e0b0292978b0e98e…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Tue Mar 30 20:50:01 2010 +0200 wineboot: Updated French translation. --- programs/wineboot/wineboot_Fr.rc | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/programs/wineboot/wineboot_Fr.rc b/programs/wineboot/wineboot_Fr.rc index 6229e90..d927504 100644 --- a/programs/wineboot/wineboot_Fr.rc +++ b/programs/wineboot/wineboot_Fr.rc @@ -2,6 +2,7 @@ * WineBoot resources * * Copyright 2007 Jonathan Ernst + * Copyright 2010 Frédéric Delanoy * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -21,19 +22,30 @@ #include "resource.h" +/* UTF-8 */ #pragma code_page(65001) LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL -IDD_ENDTASK DIALOG DISCARDABLE 0, 0, 186, 71 +IDD_ENDTASK DIALOG DISCARDABLE 0, 0, 186, 79 STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Attente du programme" FONT 8, "MS Shell Dlg" BEGIN - DEFPUSHBUTTON "Annuler",IDCANCEL,129,49,50,15 - PUSHBUTTON "Arrêter le programme",IDOK,51,49,71,15 - LTEXT "Une simulation de déconnexion ou d'extinction est en cours, mais ce programme ne répond pas.", - IDC_STATIC,7,7,172,19 - LTEXT "Si vous arrêtez le programme, vous pouvez perdre toutes les données non enregistrées.", - IDC_STATIC,7,28,172,15 + DEFPUSHBUTTON "Annuler",IDCANCEL,129,58,50,15 + PUSHBUTTON "Arrêter le programme",IDOK,49,58,76,15 + LTEXT "Une simulation de déconnexion ou d'extinction de l'ordinateur est en cours, mais ce programme ne répond pas.", + IDC_STATIC,7,7,172,25 + LTEXT "Si vous l'arrêtez, vous pouvez perdre toutes les données non enregistrées.", + IDC_STATIC,7,35,172,17 +END + +IDD_WAITDLG DIALOG 0, 0, 200, 50 +STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_CENTER | WS_POPUP | WS_DISABLED +CAPTION "Wine" +FONT 8, "MS Shell Dlg" +BEGIN + ICON "", IDC_WAITICON, 3, 3, 10, 10 + LTEXT "La configuration de Wine est en cours de mise à jour dans %s ; veuillez patienter...", + IDC_WAITTEXT, 40, 5, 150, 40, SS_NOPREFIX END
1
0
0
0
André Hentschel : wineboot: Update German translation.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: 99f9269e9b6d237aac85efcf07f9a8b38ad08df6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=99f9269e9b6d237aac85efcf0…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Tue Mar 30 19:43:35 2010 +0200 wineboot: Update German translation. --- programs/wineboot/wineboot_De.rc | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/programs/wineboot/wineboot_De.rc b/programs/wineboot/wineboot_De.rc index b65e8f3..2bfc03d 100644 --- a/programs/wineboot/wineboot_De.rc +++ b/programs/wineboot/wineboot_De.rc @@ -38,3 +38,13 @@ BEGIN LTEXT "Wenn Sie das Programm beenden, können Sie ungespeicherte Daten verlieren.", IDC_STATIC,7,28,172,19 END + +IDD_WAITDLG DIALOG 0, 0, 200, 50 +STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_CENTER | WS_POPUP | WS_DISABLED +CAPTION "Wine" +FONT 8, "MS Shell Dlg" +BEGIN + ICON "", IDC_WAITICON, 3, 3, 10, 10 + LTEXT "Die Konfiguration von Wine in %s wird aktualisiert, bitte warten...", + IDC_WAITTEXT, 40, 5, 150, 40, SS_NOPREFIX +END
1
0
0
0
Aurimas Fišeras : wineboot: Update Lithuanian translation.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: 9e0c62d61abd0a31a30c58caba714b137045866e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9e0c62d61abd0a31a30c58cab…
Author: Aurimas Fišeras <aurimas(a)gmail.com> Date: Tue Mar 30 19:07:38 2010 +0300 wineboot: Update Lithuanian translation. --- programs/wineboot/wineboot_Lt.rc | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/programs/wineboot/wineboot_Lt.rc b/programs/wineboot/wineboot_Lt.rc index 7db56e9..1ecb0a9 100644 --- a/programs/wineboot/wineboot_Lt.rc +++ b/programs/wineboot/wineboot_Lt.rc @@ -1,7 +1,7 @@ /* * WineBoot Lithuanian resources * - * Copyright 2009 Aurimas Fišeras <aurimas(a)gmail.com> + * Copyright 2009-2010 Aurimas Fišeras <aurimas(a)gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -38,3 +38,13 @@ BEGIN LTEXT "Jei nutrauksite procesą, tai galite prarasti visus neišsaugotus duomenis.", IDC_STATIC,7,28,172,17 END + +IDD_WAITDLG DIALOG 0, 0, 200, 50 +STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_CENTER | WS_POPUP | WS_DISABLED +CAPTION "Wine" +FONT 8, "MS Shell Dlg" +BEGIN + ICON "", IDC_WAITICON, 3, 3, 10, 10 + LTEXT "Wine konfigūracija (%s) yra atnaujinama, prašome palaukti...", + IDC_WAITTEXT, 40, 5, 150, 40, SS_NOPREFIX +END
1
0
0
0
Alexandre Julliard : shell32: Pack the systray data structure to allow crossing 32/64 boundaries.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: 4c2c3effb5ca12c19378ade785064843f3f1bfc3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4c2c3effb5ca12c19378ade78…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Mar 30 21:26:26 2010 +0200 shell32: Pack the systray data structure to allow crossing 32/64 boundaries. --- dlls/shell32/systray.c | 91 ++++++++++++++++++++++++++++++------------- programs/explorer/systray.c | 89 ++++++++++++++++++++++++----------------- 2 files changed, 116 insertions(+), 64 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=4c2c3effb5ca12c19378a…
1
0
0
0
Alexandre Julliard : shell32: Pack the appbar data structure to allow crossing 32/64 boundaries.
by Alexandre Julliard
31 Mar '10
31 Mar '10
Module: wine Branch: master Commit: 3cd9f97149857e07b1a57d1265f05096d730354b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3cd9f97149857e07b1a57d126…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Mar 30 20:48:40 2010 +0200 shell32: Pack the appbar data structure to allow crossing 32/64 boundaries. --- dlls/shell32/appbar.c | 37 ++++++++++++++++++------ programs/explorer/appbar.c | 68 ++++++++++++++++++++++++++------------------ 2 files changed, 68 insertions(+), 37 deletions(-) diff --git a/dlls/shell32/appbar.c b/dlls/shell32/appbar.c index 7f89a37..212ee37 100644 --- a/dlls/shell32/appbar.c +++ b/dlls/shell32/appbar.c @@ -36,17 +36,26 @@ WINE_DEFAULT_DEBUG_CHANNEL(appbar); +struct appbar_data_msg /* platform-independent data */ +{ + ULONG hWnd; + UINT uCallbackMessage; + UINT uEdge; + RECT rc; + ULONGLONG lParam; +}; + struct appbar_cmd { - HANDLE return_map; - DWORD return_process; - APPBARDATA abd; + ULONG return_map; + DWORD return_process; + struct appbar_data_msg abd; }; struct appbar_response { - UINT_PTR result; - APPBARDATA abd; + ULONGLONG result; + struct appbar_data_msg abd; }; /************************************************************************* @@ -75,7 +84,11 @@ UINT_PTR WINAPI SHAppBarMessage(DWORD msg, PAPPBARDATA data) return FALSE; } - command.abd = *data; + command.abd.hWnd = HandleToLong( data->hWnd ); + command.abd.uCallbackMessage = data->uCallbackMessage; + command.abd.uEdge = data->uEdge; + command.abd.rc = data->rc; + command.abd.lParam = data->lParam; return_map = CreateFileMappingW(INVALID_HANDLE_VALUE, 0, PAGE_READWRITE, 0, sizeof(struct appbar_response), NULL); if (return_map == NULL) @@ -83,7 +96,7 @@ UINT_PTR WINAPI SHAppBarMessage(DWORD msg, PAPPBARDATA data) ERR("couldn't create file mapping\n"); return 0; } - command.return_map = return_map; + command.return_map = HandleToUlong( return_map ); command.return_process = GetCurrentProcessId(); @@ -112,8 +125,14 @@ UINT_PTR WINAPI SHAppBarMessage(DWORD msg, PAPPBARDATA data) response = return_view; ret = response->result; - *data = response->abd; - + if (ret) + { + data->hWnd = UlongToHandle( response->abd.hWnd ); + data->uCallbackMessage = response->abd.uCallbackMessage; + data->uEdge = response->abd.uEdge; + data->rc = response->abd.rc; + data->lParam = response->abd.lParam; + } UnmapViewOfFile(return_view); CloseHandle(return_map); diff --git a/programs/explorer/appbar.c b/programs/explorer/appbar.c index 2947ccd..ca3698e 100644 --- a/programs/explorer/appbar.c +++ b/programs/explorer/appbar.c @@ -37,17 +37,26 @@ WINE_DEFAULT_DEBUG_CHANNEL(appbar); +struct appbar_data_msg /* platform-independent data */ +{ + LONG hWnd; + UINT uCallbackMessage; + UINT uEdge; + RECT rc; + ULONGLONG lParam; +}; + struct appbar_cmd { - HANDLE return_map; - DWORD return_process; - APPBARDATA abd; + ULONG return_map; + DWORD return_process; + struct appbar_data_msg abd; }; struct appbar_response { - UINT_PTR result; - APPBARDATA abd; + ULONGLONG result; + struct appbar_data_msg abd; }; static HWND appbarmsg_window = NULL; @@ -92,12 +101,12 @@ static void send_poschanged(HWND hwnd) } /* appbar_cliprect: cut out parts of the rectangle that interfere with existing appbars */ -static void appbar_cliprect(PAPPBARDATA abd) +static void appbar_cliprect( HWND hwnd, RECT *rect ) { struct appbar_data* data; LIST_FOR_EACH_ENTRY(data, &appbars, struct appbar_data, entry) { - if (data->hwnd == abd->hWnd) + if (data->hwnd == hwnd) { /* we only care about appbars that were added before this one */ return; @@ -108,30 +117,31 @@ static void appbar_cliprect(PAPPBARDATA abd) switch (data->edge) { case ABE_BOTTOM: - abd->rc.bottom = min(abd->rc.bottom, data->rc.top); + rect->bottom = min(rect->bottom, data->rc.top); break; case ABE_LEFT: - abd->rc.left = max(abd->rc.left, data->rc.right); + rect->left = max(rect->left, data->rc.right); break; case ABE_RIGHT: - abd->rc.right = min(abd->rc.right, data->rc.left); + rect->right = min(rect->right, data->rc.left); break; case ABE_TOP: - abd->rc.top = max(abd->rc.top, data->rc.bottom); + rect->top = max(rect->top, data->rc.bottom); break; } } } } -static UINT_PTR handle_appbarmessage(DWORD msg, PAPPBARDATA abd) +static UINT_PTR handle_appbarmessage(DWORD msg, struct appbar_data_msg *abd) { struct appbar_data* data; + HWND hwnd = LongToHandle( abd->hWnd ); switch (msg) { case ABM_NEW: - if (get_appbar(abd->hWnd)) + if (get_appbar(hwnd)) { /* fail when adding an hwnd the second time */ return FALSE; @@ -143,42 +153,42 @@ static UINT_PTR handle_appbarmessage(DWORD msg, PAPPBARDATA abd) WINE_ERR("out of memory\n"); return FALSE; } - data->hwnd = abd->hWnd; + data->hwnd = hwnd; data->callback_msg = abd->uCallbackMessage; list_add_tail(&appbars, &data->entry); return TRUE; case ABM_REMOVE: - if ((data = get_appbar(abd->hWnd))) + if ((data = get_appbar(hwnd))) { list_remove(&data->entry); - send_poschanged(abd->hWnd); + send_poschanged(hwnd); HeapFree(GetProcessHeap(), 0, data); } else - WINE_WARN("removing hwnd %p not on the list\n", abd->hWnd); + WINE_WARN("removing hwnd %p not on the list\n", hwnd); return TRUE; case ABM_QUERYPOS: if (abd->uEdge > ABE_BOTTOM) - WINE_WARN("invalid edge %i for %p\n", abd->uEdge, abd->hWnd); - appbar_cliprect(abd); + WINE_WARN("invalid edge %i for %p\n", abd->uEdge, hwnd); + appbar_cliprect( hwnd, &abd->rc ); return TRUE; case ABM_SETPOS: if (abd->uEdge > ABE_BOTTOM) { - WINE_WARN("invalid edge %i for %p\n", abd->uEdge, abd->hWnd); + WINE_WARN("invalid edge %i for %p\n", abd->uEdge, hwnd); return TRUE; } - if ((data = get_appbar(abd->hWnd))) + if ((data = get_appbar(hwnd))) { /* calculate acceptable space */ - appbar_cliprect(abd); + appbar_cliprect( hwnd, &abd->rc ); if (!EqualRect(&abd->rc, &data->rc)) - send_poschanged(abd->hWnd); + send_poschanged(hwnd); /* reserve that space for this appbar */ data->edge = abd->uEdge; @@ -187,14 +197,14 @@ static UINT_PTR handle_appbarmessage(DWORD msg, PAPPBARDATA abd) } else { - WINE_WARN("app sent ABM_SETPOS message for %p without ABM_ADD\n", abd->hWnd); + WINE_WARN("app sent ABM_SETPOS message for %p without ABM_ADD\n", hwnd); } return TRUE; case ABM_GETSTATE: WINE_FIXME("SHAppBarMessage(ABM_GETSTATE): stub\n"); return ABS_ALWAYSONTOP | ABS_AUTOHIDE; case ABM_GETTASKBARPOS: - WINE_FIXME("SHAppBarMessage(ABM_GETTASKBARPOS, hwnd=%p): stub\n", abd->hWnd); + WINE_FIXME("SHAppBarMessage(ABM_GETTASKBARPOS, hwnd=%p): stub\n", hwnd); /* Report the taskbar is at the bottom of the screen. */ abd->rc.left = 0; abd->rc.right = GetSystemMetrics(SM_CXSCREEN); @@ -205,10 +215,11 @@ static UINT_PTR handle_appbarmessage(DWORD msg, PAPPBARDATA abd) case ABM_ACTIVATE: return TRUE; case ABM_GETAUTOHIDEBAR: - WINE_FIXME("SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=%p, edge=%x): stub\n", abd->hWnd, abd->uEdge); + WINE_FIXME("SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=%p, edge=%x): stub\n", hwnd, abd->uEdge); return 0; case ABM_SETAUTOHIDEBAR: - WINE_FIXME("SHAppBarMessage(ABM_SETAUTOHIDEBAR, hwnd=%p, edge=%x, lparam=%lx): stub\n", abd->hWnd, abd->uEdge, abd->lParam); + WINE_FIXME("SHAppBarMessage(ABM_SETAUTOHIDEBAR, hwnd=%p, edge=%x, lparam=%s): stub\n", + hwnd, abd->uEdge, wine_dbgstr_longlong(abd->lParam)); return TRUE; case ABM_WINDOWPOSCHANGED: return TRUE; @@ -246,7 +257,8 @@ static LRESULT CALLBACK appbar_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARA return TRUE; } - if (!DuplicateHandle(return_hproc, cmd.return_map, GetCurrentProcess(), &return_map, 0, FALSE, DUPLICATE_SAME_ACCESS)) + if (!DuplicateHandle(return_hproc, UlongToHandle(cmd.return_map), + GetCurrentProcess(), &return_map, 0, FALSE, DUPLICATE_SAME_ACCESS)) { WINE_ERR("couldn't duplicate handle\n"); CloseHandle(return_hproc);
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
92
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
89
90
91
92
Results per page:
10
25
50
100
200