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 2016
----- 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
755 discussions
Start a n
N
ew thread
Piotr Caban : user32: Select text control content while setting dialog focus.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 73ee2a8b4f7d13701c756721b2b9b92b4ddabd0d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=73ee2a8b4f7d13701c756721b…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Feb 16 14:49:10 2016 +0100 user32: Select text control content while setting dialog focus. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/dialog.c | 4 ++++ dlls/user32/tests/dialog.c | 31 ++++++++++++++++++++++++++++++- dlls/user32/tests/resource.rc | 8 ++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c index 8340850..e841152 100644 --- a/dlls/user32/dialog.c +++ b/dlls/user32/dialog.c @@ -707,7 +707,11 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate, focus = GetNextDlgTabItem( hwnd, 0, FALSE ); if (!focus) focus = GetNextDlgGroupItem( hwnd, 0, FALSE ); if (focus) + { + if (SendMessageW( focus, WM_GETDLGCODE, 0, 0 ) & DLGC_HASSETSEL) + SendMessageW( focus, EM_SETSEL, 0, MAXLONG ); SetFocus( focus ); + } } } diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c index eede834..a6cd1be 100644 --- a/dlls/user32/tests/dialog.c +++ b/dlls/user32/tests/dialog.c @@ -786,7 +786,8 @@ static INT_PTR CALLBACK focusDlgWinProc (HWND hDlg, UINT uiMsg, WPARAM wParam, switch (uiMsg) { case WM_INITDIALOG: - return TRUE; + SetWindowTextA(GetDlgItem(hDlg, 200), "new caption"); + return TRUE; case WM_COMMAND: if (LOWORD(wParam) == 200) @@ -958,6 +959,34 @@ static void test_focus(void) DestroyWindow(hDlg); } + + /* Test 5: + * Select textbox's text on creation */ + { + HWND hDlg; + HRSRC hResource; + HANDLE hTemplate; + DLGTEMPLATE* pTemplate; + HWND edit; + DWORD selectionStart = 0xdead, selectionEnd = 0xbeef; + + hResource = FindResourceA(g_hinst,"FOCUS_TEST_DIALOG_3", (LPCSTR)RT_DIALOG); + hTemplate = LoadResource(g_hinst, hResource); + pTemplate = LockResource(hTemplate); + + hDlg = CreateDialogIndirectParamA(g_hinst, pTemplate, NULL, focusDlgWinProc, 0); + ok(hDlg != 0, "Failed to create test dialog.\n"); + edit = GetDlgItem(hDlg, 200); + + ok(GetFocus() == edit, "Focus not set to edit, focus=%p, dialog=%p, edit=%p\n", + GetFocus(), hDlg, edit); + SendMessageA(edit, EM_GETSEL, (WPARAM)&selectionStart, (LPARAM)&selectionEnd); + ok(selectionStart == 0 && selectionEnd == 11, + "Text selection after WM_SETFOCUS is [%i, %i) expected [0, 11)\n", + selectionStart, selectionEnd); + + DestroyWindow(hDlg); + } } static void test_GetDlgItemText(void) diff --git a/dlls/user32/tests/resource.rc b/dlls/user32/tests/resource.rc index be47038..fdef5a9 100644 --- a/dlls/user32/tests/resource.rc +++ b/dlls/user32/tests/resource.rc @@ -107,6 +107,14 @@ FONT 8, "MS Shell Dlg" LTEXT "Hello world", 200,4,4,50,14 } +FOCUS_TEST_DIALOG_3 DIALOG 0, 0, 60, 30 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "Test dialog" +FONT 8, "MS Shell Dlg" +{ + EDITTEXT 200,4,4,50,14 +} + IDD_DIALOG DIALOG 0, 0, 186, 95 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Dialog"
1
0
0
0
Charles Davis : advapi32: Don't print 32-bit values as long integers.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 09b14675755619f77eefe5df682165ca97995524 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=09b14675755619f77eefe5df6…
Author: Charles Davis <cdavis5x(a)gmail.com> Date: Wed Feb 17 14:35:09 2016 -0700 advapi32: Don't print 32-bit values as long integers. Signed-off-by: Charles Davis <cdavis5x(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/advapi32/cred.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c index 10e58eb..7fa1a0b 100644 --- a/dlls/advapi32/cred.c +++ b/dlls/advapi32/cred.c @@ -239,7 +239,7 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require PCREDENTIALW credential, char *buffer, DWORD *len) { - OSStatus status; + int status; UInt32 i, cred_blob_len; void *cred_blob; WCHAR *user = NULL; @@ -260,7 +260,7 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require } if (status != noErr) { - WARN("SecKeychainItemCopyAttributesAndData returned status %ld\n", status); + WARN("SecKeychainItemCopyAttributesAndData returned status %d\n", status); return ERROR_NOT_FOUND; } @@ -371,7 +371,7 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require } break; default: - FIXME("unhandled attribute %lu\n", attr_list->attr[i].tag); + FIXME("unhandled attribute %u\n", (unsigned)attr_list->attr[i].tag); break; } } @@ -496,7 +496,7 @@ static DWORD registry_write_credential(HKEY hkey, const CREDENTIALW *credential, #ifdef __APPLE__ static DWORD mac_write_credential(const CREDENTIALW *credential, BOOL preserve_blob) { - OSStatus status; + int status; SecKeychainItemRef keychain_item; char *username, *password, *servername; UInt32 userlen, pwlen, serverlen; @@ -529,13 +529,13 @@ static DWORD mac_write_credential(const CREDENTIALW *credential, BOOL preserve_b status = SecKeychainAddGenericPassword(NULL, strlen(servername), servername, strlen(username), username, strlen(password), password, &keychain_item); if (status != noErr) - ERR("SecKeychainAddGenericPassword returned %ld\n", status); + ERR("SecKeychainAddGenericPassword returned %d\n", status); if (status == errSecDuplicateItem) { status = SecKeychainFindGenericPassword(NULL, strlen(servername), servername, strlen(username), username, NULL, NULL, &keychain_item); if (status != noErr) - ERR("SecKeychainFindGenericPassword returned %ld\n", status); + ERR("SecKeychainFindGenericPassword returned %d\n", status); } heap_free(username); heap_free(servername); @@ -774,7 +774,7 @@ static DWORD mac_enumerate_credentials(LPCWSTR filter, PCREDENTIALW *credentials { SecKeychainSearchRef search; SecKeychainItemRef item; - OSStatus status; + int status; Boolean saved_user_interaction_allowed; DWORD ret; @@ -797,7 +797,7 @@ static DWORD mac_enumerate_credentials(LPCWSTR filter, PCREDENTIALW *credentials status = SecKeychainItemCopyAttributesAndData(item, &info, NULL, &attr_list, NULL, NULL); if (status != noErr) { - WARN("SecKeychainItemCopyAttributesAndData returned status %ld\n", status); + WARN("SecKeychainItemCopyAttributesAndData returned status %d\n", status); continue; } if (buffer) @@ -830,14 +830,14 @@ static DWORD mac_enumerate_credentials(LPCWSTR filter, PCREDENTIALW *credentials CFRelease(search); } else - ERR("SecKeychainSearchCreateFromAttributes returned status %ld\n", status); + ERR("SecKeychainSearchCreateFromAttributes returned status %d\n", status); SecKeychainSetUserInteractionAllowed(saved_user_interaction_allowed); return ERROR_SUCCESS; } static DWORD mac_delete_credential(LPCWSTR TargetName) { - OSStatus status; + int status; SecKeychainSearchRef search; status = SecKeychainSearchCreateFromAttributes(NULL, kSecGenericPasswordItemClass, NULL, &search); if (status == noErr) @@ -856,7 +856,7 @@ static DWORD mac_delete_credential(LPCWSTR TargetName) status = SecKeychainItemCopyAttributesAndData(item, &info, NULL, &attr_list, NULL, NULL); if (status != noErr) { - WARN("SecKeychainItemCopyAttributesAndData returned status %ld\n", status); + WARN("SecKeychainItemCopyAttributesAndData returned status %d\n", status); continue; } if (attr_list->count != 1 || attr_list->attr[0].tag != kSecServiceItemAttr) @@ -1425,7 +1425,7 @@ BOOL WINAPI CredReadW(LPCWSTR TargetName, DWORD Type, DWORD Flags, PCREDENTIALW #ifdef __APPLE__ if (Type == CRED_TYPE_DOMAIN_PASSWORD) { - OSStatus status; + int status; SecKeychainSearchRef search; status = SecKeychainSearchCreateFromAttributes(NULL, kSecGenericPasswordItemClass, NULL, &search); if (status == noErr) @@ -1445,7 +1445,7 @@ BOOL WINAPI CredReadW(LPCWSTR TargetName, DWORD Type, DWORD Flags, PCREDENTIALW len = sizeof(**Credential); if (status != noErr) { - WARN("SecKeychainItemCopyAttributesAndData returned status %ld\n", status); + WARN("SecKeychainItemCopyAttributesAndData returned status %d\n", status); continue; } if (attr_list->count != 1 || attr_list->attr[0].tag != kSecServiceItemAttr)
1
0
0
0
Sebastian Lackner : vbscript/tests: Fix operator priority in ok() condition.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 39dfd38d82230f2bd0874d2c914a0c3f0c5b5c86 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=39dfd38d82230f2bd0874d2c9…
Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Thu Feb 18 06:36:32 2016 +0100 vbscript/tests: Fix operator priority in ok() condition. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/vbscript/tests/run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/vbscript/tests/run.c b/dlls/vbscript/tests/run.c index d8c5467..5662719 100644 --- a/dlls/vbscript/tests/run.c +++ b/dlls/vbscript/tests/run.c @@ -561,7 +561,7 @@ static void test_safearray(SAFEARRAY *safearray, unsigned indims) ok(!safearray->cLocks, "safearray->cLocks = %x\n", safearray->cLocks); for(i=0; i < safearray->cDims; i++) { - ok(safearray->rgsabound[i].cElements == indims ? i+4 : 1, "safearray->rgsabound[%d].cElements = %d\n", i, + ok(safearray->rgsabound[i].cElements == (indims ? i+4 : 1), "safearray->rgsabound[%d].cElements = %d\n", i, safearray->rgsabound[i].cElements); ok(!safearray->rgsabound[i].lLbound, "safearray->rgsabound[%d].lLbound = %d\n", i, safearray->rgsabound[i].lLbound); }
1
0
0
0
Sebastian Lackner : mshtml/tests: Fix operator priority in ok() condition.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 11c2f370b6b7ca0d41236eb8b3b0e82c0b717f2d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=11c2f370b6b7ca0d41236eb8b…
Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Thu Feb 18 06:36:14 2016 +0100 mshtml/tests: Fix operator priority in ok() condition. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mshtml/tests/htmldoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index 71519ed..904322e 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -6355,7 +6355,7 @@ static void _test_QueryStatus(unsigned line, IUnknown *unk, REFIID cgid, ULONG c return; hres = IOleCommandTarget_QueryStatus(cmdtrg, cgid, 1, &olecmd, NULL); - ok(hres == cmdf ? S_OK : OLECMDERR_E_NOTSUPPORTED, "QueryStatus(%u) failed: %08x\n", cmdid, hres); + ok(hres == (cmdf ? S_OK : OLECMDERR_E_NOTSUPPORTED), "QueryStatus(%u) failed: %08x\n", cmdid, hres); IOleCommandTarget_Release(cmdtrg);
1
0
0
0
Alexandre Julliard : libwine: Move the CP_SYMBOL conversion functions to libwine_port.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 18699623b3ad43c2baa37ebd0ea211adda867479 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=18699623b3ad43c2baa37ebd0…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Feb 18 18:49:28 2016 +0900 libwine: Move the CP_SYMBOL conversion functions to libwine_port. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- libs/port/Makefile.in | 1 + libs/port/cpsymbol.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ libs/wine/mbtowc.c | 19 ----------------- libs/wine/port.c | 2 ++ libs/wine/wctomb.c | 21 ------------------- 5 files changed, 61 insertions(+), 40 deletions(-) diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index ede38c5..67fb999 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -73,6 +73,7 @@ C_SRCS = \ c_936.c \ c_949.c \ c_950.c \ + cpsymbol.c \ cptable.c \ digitmap.c \ ffs.c \ diff --git a/libs/port/cpsymbol.c b/libs/port/cpsymbol.c new file mode 100644 index 0000000..e35a359 --- /dev/null +++ b/libs/port/cpsymbol.c @@ -0,0 +1,58 @@ +/* + * CP_SYMBOL support + * + * Copyright 2000 Alexandre Julliard + * Copyright 2004 Rein Klazes + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "wine/unicode.h" + +/* return -1 on dst buffer overflow */ +int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen) +{ + int len, i; + + if (dstlen == 0) return srclen; + len = dstlen > srclen ? srclen : dstlen; + for (i = 0; i < len; i++) + { + unsigned char c = src[i]; + dst[i] = (c < 0x20) ? c : c + 0xf000; + } + if (srclen > len) return -1; + return len; +} + +/* return -1 on dst buffer overflow, -2 on invalid character */ +int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen) +{ + int len, i; + + if (dstlen == 0) return srclen; + len = dstlen > srclen ? srclen : dstlen; + for (i = 0; i < len; i++) + { + if (src[i] < 0x20) + dst[i] = src[i]; + else if (src[i] >= 0xf020 && src[i] < 0xf100) + dst[i] = src[i] - 0xf000; + else + return -2; + } + if (srclen > len) return -1; + return len; +} diff --git a/libs/wine/mbtowc.c b/libs/wine/mbtowc.c index 6fc38ca..9267d9d 100644 --- a/libs/wine/mbtowc.c +++ b/libs/wine/mbtowc.c @@ -291,22 +291,3 @@ int wine_cp_mbstowcs( const union cptable *table, int flags, return mbstowcs_dbcs_decompose( &table->dbcs, src, srclen, dst, dstlen ); } } - -/* CP_SYMBOL implementation */ -/* return -1 on dst buffer overflow */ -int wine_cpsymbol_mbstowcs( const char *src, int srclen, WCHAR *dst, int dstlen) -{ - int len, i; - if( dstlen == 0) return srclen; - len = dstlen > srclen ? srclen : dstlen; - for( i = 0; i < len; i++) - { - unsigned char c = src [ i ]; - if( c < 0x20 ) - dst[i] = c; - else - dst[i] = c + 0xf000; - } - if( srclen > len) return -1; - return len; -} diff --git a/libs/wine/port.c b/libs/wine/port.c index dc08b71..070dfd9 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -33,6 +33,8 @@ const void *libwine_port_functions[] = { wine_cp_enum_table, wine_cp_get_table, + wine_cpsymbol_mbstowcs, + wine_cpsymbol_wcstombs, wine_fold_string }; diff --git a/libs/wine/wctomb.c b/libs/wine/wctomb.c index 29a3d92..62c0fc2 100644 --- a/libs/wine/wctomb.c +++ b/libs/wine/wctomb.c @@ -470,24 +470,3 @@ int wine_cp_wcstombs( const union cptable *table, int flags, return wcstombs_dbcs( &table->dbcs, src, srclen, dst, dstlen ); } } - -/* CP_SYMBOL implementation */ -/* return -1 on dst buffer overflow, -2 on invalid character */ -int wine_cpsymbol_wcstombs( const WCHAR *src, int srclen, char *dst, int dstlen) -{ - int len, i; - if( dstlen == 0) return srclen; - len = dstlen > srclen ? srclen : dstlen; - for( i = 0; i < len; i++) - { - WCHAR w = src [ i ]; - if( w < 0x20 ) - dst[i] = w; - else if( w >= 0xf020 && w < 0xf100) - dst[i] = w - 0xf000; - else - return -2; - } - if( srclen > len) return -1; - return len; -}
1
0
0
0
Alexandre Julliard : libwine: Move the codepage tables to libwine_port.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 2087f38e8478ff8596a5a2038f8607aecfe2faa7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2087f38e8478ff8596a5a2038…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Feb 18 14:33:10 2016 +0900 libwine: Move the codepage tables to libwine_port. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- libs/port/Makefile.in | 73 +++++++++++++++++++++++++++++++++++++++++++ libs/{wine => port}/c_037.c | 0 libs/{wine => port}/c_10000.c | 0 libs/{wine => port}/c_10001.c | 0 libs/{wine => port}/c_10002.c | 0 libs/{wine => port}/c_10003.c | 0 libs/{wine => port}/c_10004.c | 0 libs/{wine => port}/c_10005.c | 0 libs/{wine => port}/c_10006.c | 0 libs/{wine => port}/c_10007.c | 0 libs/{wine => port}/c_10008.c | 0 libs/{wine => port}/c_10010.c | 0 libs/{wine => port}/c_10017.c | 0 libs/{wine => port}/c_10021.c | 0 libs/{wine => port}/c_10029.c | 0 libs/{wine => port}/c_1006.c | 0 libs/{wine => port}/c_10079.c | 0 libs/{wine => port}/c_10081.c | 0 libs/{wine => port}/c_10082.c | 0 libs/{wine => port}/c_1026.c | 0 libs/{wine => port}/c_1250.c | 0 libs/{wine => port}/c_1251.c | 0 libs/{wine => port}/c_1252.c | 0 libs/{wine => port}/c_1253.c | 0 libs/{wine => port}/c_1254.c | 0 libs/{wine => port}/c_1255.c | 0 libs/{wine => port}/c_1256.c | 0 libs/{wine => port}/c_1257.c | 0 libs/{wine => port}/c_1258.c | 0 libs/{wine => port}/c_1361.c | 0 libs/{wine => port}/c_20127.c | 0 libs/{wine => port}/c_20866.c | 0 libs/{wine => port}/c_20932.c | 0 libs/{wine => port}/c_21866.c | 0 libs/{wine => port}/c_28591.c | 0 libs/{wine => port}/c_28592.c | 0 libs/{wine => port}/c_28593.c | 0 libs/{wine => port}/c_28594.c | 0 libs/{wine => port}/c_28595.c | 0 libs/{wine => port}/c_28596.c | 0 libs/{wine => port}/c_28597.c | 0 libs/{wine => port}/c_28598.c | 0 libs/{wine => port}/c_28599.c | 0 libs/{wine => port}/c_28600.c | 0 libs/{wine => port}/c_28603.c | 0 libs/{wine => port}/c_28604.c | 0 libs/{wine => port}/c_28605.c | 0 libs/{wine => port}/c_28606.c | 0 libs/{wine => port}/c_424.c | 0 libs/{wine => port}/c_437.c | 0 libs/{wine => port}/c_500.c | 0 libs/{wine => port}/c_737.c | 0 libs/{wine => port}/c_775.c | 0 libs/{wine => port}/c_850.c | 0 libs/{wine => port}/c_852.c | 0 libs/{wine => port}/c_855.c | 0 libs/{wine => port}/c_856.c | 0 libs/{wine => port}/c_857.c | 0 libs/{wine => port}/c_860.c | 0 libs/{wine => port}/c_861.c | 0 libs/{wine => port}/c_862.c | 0 libs/{wine => port}/c_863.c | 0 libs/{wine => port}/c_864.c | 0 libs/{wine => port}/c_865.c | 0 libs/{wine => port}/c_866.c | 0 libs/{wine => port}/c_869.c | 0 libs/{wine => port}/c_874.c | 0 libs/{wine => port}/c_875.c | 0 libs/{wine => port}/c_878.c | 0 libs/{wine => port}/c_932.c | 0 libs/{wine => port}/c_936.c | 0 libs/{wine => port}/c_949.c | 0 libs/{wine => port}/c_950.c | 0 libs/{wine => port}/cptable.c | 4 +-- libs/wine/Makefile.in | 73 ------------------------------------------- libs/wine/port.c | 2 ++ tools/make_unicode | 4 +-- 77 files changed, 79 insertions(+), 77 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=2087f38e8478ff8596a5a…
1
0
0
0
Alexandre Julliard : libwine: Move the wine_fold_string implementation to libwine_port.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: fa84ea255501390b0967d430de6b371149a6ff28 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa84ea255501390b0967d430d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Feb 18 14:10:26 2016 +0900 libwine: Move the wine_fold_string implementation to libwine_port. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- libs/port/Makefile.in | 1 + libs/{wine => port}/fold.c | 0 libs/wine/Makefile.in | 1 - libs/wine/port.c | 7 +++++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in index 23000c9..7301555 100644 --- a/libs/port/Makefile.in +++ b/libs/port/Makefile.in @@ -3,6 +3,7 @@ STATICLIB = libwine_port.a C_SRCS = \ digitmap.c \ ffs.c \ + fold.c \ fstatvfs.c \ getopt.c \ getopt1.c \ diff --git a/libs/wine/fold.c b/libs/port/fold.c similarity index 100% rename from libs/wine/fold.c rename to libs/port/fold.c diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index 1b7fea8..08156da 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -81,7 +81,6 @@ C_SRCS = \ config.c \ cptable.c \ debug.c \ - fold.c \ ldt.c \ loader.c \ mbtowc.c \ diff --git a/libs/wine/port.c b/libs/wine/port.c index a532b2d..7e38de7 100644 --- a/libs/wine/port.c +++ b/libs/wine/port.c @@ -25,8 +25,15 @@ #include <string.h> #include <sys/types.h> +#include "wine/unicode.h" #include "wine/library.h" +/* functions from libwine_port that are also exported from libwine for backwards compatibility */ +const void *libwine_port_functions[] = +{ + wine_fold_string +}; + /* no longer used, for backwards compatibility only */ struct wine_pthread_functions; static void *pthread_functions[8];
1
0
0
0
Alexandre Julliard : libwine: Move the digit folding tables to libwine_port.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: d59d45e457a714e2dc596b7269d1afaca3fba50f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d59d45e457a714e2dc596b726…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Feb 18 14:02:10 2016 +0900 libwine: Move the digit folding tables to libwine_port. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- libs/port/Makefile.in | 1 + libs/port/digitmap.c | 985 ++++++++++++++++++++++++++++++++++++++++++++++++++ libs/wine/casemap.c | 982 +------------------------------------------------ tools/make_unicode | 33 +- 4 files changed, 1016 insertions(+), 985 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=d59d45e457a714e2dc596…
1
0
0
0
Frédéric Delanoy : mshtml/tests: Use todo_wine_if() in tests.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 7023b20b6cebd2289a1c8d6fb0bb904f2af53c74 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7023b20b6cebd2289a1c8d6fb…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Wed Feb 17 21:55:03 2016 +0100 mshtml/tests: Use todo_wine_if() in tests. Signed-off-by: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/mshtml/tests/dom.c | 11 ++--------- dlls/mshtml/tests/htmldoc.c | 24 ++++++------------------ dlls/mshtml/tests/xmlhttprequest.c | 4 +--- 3 files changed, 9 insertions(+), 30 deletions(-) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index 7b5b395..4b2b825 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -7603,12 +7603,7 @@ static void _test_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet, hres = IHTMLStyleSheet_get_cssText(stylesheet, &str); ok_(__FILE__,line)(hres == S_OK, "get_cssText failed: %08x\n", hres); - if(!is_todo) { - if(exstr) - ok_(__FILE__,line)(is_prefix_wa(str, exstr), "cssText = %s\n", wine_dbgstr_w(str)); - else - ok_(__FILE__,line)(!str, "cssText = %s\n", wine_dbgstr_w(str)); - }else todo_wine { + todo_wine_if(is_todo) { if(exstr) ok_(__FILE__,line)(is_prefix_wa(str, exstr), "cssText = %s\n", wine_dbgstr_w(str)); else @@ -7625,10 +7620,8 @@ static void _set_stylesheet_csstext(unsigned line, IHTMLStyleSheet *stylesheet, HRESULT hres; hres = IHTMLStyleSheet_put_cssText(stylesheet, str); - if(!is_todo) + todo_wine_if(is_todo) ok_(__FILE__,line)(hres == S_OK, "put_cssText failed: %08x\n", hres); - else - todo_wine ok_(__FILE__,line)(hres == S_OK, "put_cssText failed: %08x\n", hres); SysFreeString(str); } diff --git a/dlls/mshtml/tests/htmldoc.c b/dlls/mshtml/tests/htmldoc.c index 87f17d6..71519ed 100644 --- a/dlls/mshtml/tests/htmldoc.c +++ b/dlls/mshtml/tests/htmldoc.c @@ -427,9 +427,7 @@ static void _test_GetCurMoniker(unsigned line, IUnknown *unk, IMoniker *exmon, c hres = IMoniker_GetDisplayName(mon, NULL, NULL, &url); ok(hres == S_OK, "GetDisplayName failed: %08x\n", hres); - if(is_todo) - todo_wine ok_(__FILE__,line)(!strcmp_wa(url, exurl), "unexpected url %s\n", wine_dbgstr_w(url)); - else + todo_wine_if(is_todo) ok_(__FILE__,line)(!strcmp_wa(url, exurl), "unexpected url %s\n", wine_dbgstr_w(url)); if(!*ptr) ok_(__FILE__,line)(!lstrcmpW(url, doc_url), "url %s != doc_url %s\n", wine_dbgstr_w(url), wine_dbgstr_w(doc_url)); @@ -2613,10 +2611,8 @@ static HRESULT WINAPI DocHostUIHandler_TranslateUrl(IDocHostUIHandler2 *iface, D CHECK_EXPECT(TranslateUrl); ok(iface == expect_uihandler_iface, "called on unexpected iface\n"); ok(!dwTranslate, "dwTranslate = %x\n", dwTranslate); - if(!loading_hash) + todo_wine_if(loading_hash) ok(!strcmp_wa(pchURLIn, nav_serv_url), "pchURLIn = %s, expected %s\n", wine_dbgstr_w(pchURLIn), nav_serv_url); - else - todo_wine ok(!strcmp_wa(pchURLIn, nav_serv_url), "pchURLIn = %s, expected %s\n", wine_dbgstr_w(pchURLIn), nav_serv_url); ok(ppchURLOut != NULL, "ppchURLOut == NULL\n"); ok(!*ppchURLOut, "*ppchURLOut = %p\n", *ppchURLOut); @@ -5793,9 +5789,7 @@ static void test_download(DWORD flags) if(flags & DWL_HTTP) SET_CALLED(Exec_SETPROGRESSMAX); if(flags & DWL_EX_GETHOSTINFO) { - if(nav_url) - todo_wine CHECK_CALLED(GetHostInfo); - else + todo_wine_if(nav_url) CHECK_CALLED(GetHostInfo); } CHECK_CALLED(SetStatusText); @@ -5818,10 +5812,8 @@ static void test_download(DWORD flags) if(flags & DWL_ONREADY_LOADING) CHECK_CALLED(Invoke_OnReadyStateChange_Loading); if(!(flags & (DWL_EMPTY|DWL_JAVASCRIPT))) { - if(!is_extern) + todo_wine_if(is_extern) CHECK_CALLED(Invoke_OnReadyStateChange_Interactive); - else - todo_wine CHECK_CALLED(Invoke_OnReadyStateChange_Interactive); } if(!is_js && !is_extern) CHECK_CALLED(Invoke_OnReadyStateChange_Complete); @@ -5853,10 +5845,8 @@ static void test_download(DWORD flags) todo_wine CHECK_CALLED(Exec_SETPROGRESSPOS); } if(!(flags & DWL_EMPTY)) { - if(!is_extern) + todo_wine_if(is_extern) CHECK_CALLED(Exec_SETDOWNLOADSTATE_0); - else - todo_wine CHECK_CALLED(Exec_SETDOWNLOADSTATE_0); } CLEAR_CALLED(Exec_ShellDocView_103); CLEAR_CALLED(Exec_ShellDocView_105); @@ -5883,10 +5873,8 @@ static void test_download(DWORD flags) if(!is_js && !is_extern) { if(!editmode && !(flags & DWL_REFRESH)) { if(!(flags & DWL_EMPTY)) { - if(support_wbapp) + todo_wine_if(!support_wbapp) CHECK_CALLED(FireNavigateComplete2); - else - todo_wine CHECK_CALLED(FireNavigateComplete2); } CHECK_CALLED(FireDocumentComplete); } diff --git a/dlls/mshtml/tests/xmlhttprequest.c b/dlls/mshtml/tests/xmlhttprequest.c index dd8e797..5d11ec0 100644 --- a/dlls/mshtml/tests/xmlhttprequest.c +++ b/dlls/mshtml/tests/xmlhttprequest.c @@ -850,10 +850,8 @@ static void test_async_xhr(IHTMLDocument2 *doc, const char *xml_url, const char CHECK_CALLED(xmlhttprequest_onreadystatechange_loading); CHECK_CALLED(xmlhttprequest_onreadystatechange_done); /* Workaround for loading large files */ - if(expect_text) + todo_wine_if(!expect_text) ok(loading_cnt == 1, "loading_cnt = %d\n", loading_cnt); - else - todo_wine ok(loading_cnt == 1, "loading_cnt = %d\n", loading_cnt); if(FAILED(hres)) { IHTMLXMLHttpRequest_Release(xhr);
1
0
0
0
Frédéric Delanoy : ieframe/tests: Use todo_wine_if() in tests.
by Alexandre Julliard
18 Feb '16
18 Feb '16
Module: wine Branch: master Commit: 0d6ed1b6679d32849b8cbb7e219ea7d63bf2cfbb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0d6ed1b6679d32849b8cbb7e2…
Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Wed Feb 17 21:13:30 2016 +0100 ieframe/tests: Use todo_wine_if() in tests. Signed-off-by: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ieframe/tests/intshcut.c | 5 +---- dlls/ieframe/tests/webbrowser.c | 9 ++------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/dlls/ieframe/tests/intshcut.c b/dlls/ieframe/tests/intshcut.c index 2a5f2df..0959a61 100644 --- a/dlls/ieframe/tests/intshcut.c +++ b/dlls/ieframe/tests/intshcut.c @@ -147,10 +147,7 @@ static void _check_string_transform(unsigned line, IUniformResourceLocatorA *url output = (void*)0xdeadbeef; hr = urlA->lpVtbl->GetURL(urlA, &output); if(expectedOutput) { - if(is_todo) { - todo_wine - ok_(__FILE__,line)(hr == S_OK, "GetUrl failed, hr=0x%x\n", hr); - }else { + todo_wine_if(is_todo) { ok_(__FILE__,line)(hr == S_OK, "GetUrl failed, hr=0x%x\n", hr); } todo_wine diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c index 3201499..032faef 100644 --- a/dlls/ieframe/tests/webbrowser.c +++ b/dlls/ieframe/tests/webbrowser.c @@ -2806,10 +2806,7 @@ static void test_QueryStatusWB(IWebBrowser2 *webbrowser, BOOL has_document) if (use_container_olecmd) SET_EXPECT(QueryStatus_STOP); hres = IWebBrowser2_QueryStatusWB(webbrowser, OLECMDID_STOP, &status); ok(hres == success_state, "QueryStatusWB failed: %08x %08x\n", hres, success_state); - if (!use_container_olecmd && has_document) - todo_wine ok((has_document && status == success_flags) || (!has_document && status == 0xdeadbeef), - "OLECMDID_STOP not enabled/supported: %08x %08x\n", status, success_flags); - else + todo_wine_if (!use_container_olecmd && has_document) ok((has_document && status == success_flags) || (!has_document && status == 0xdeadbeef), "OLECMDID_STOP not enabled/supported: %08x %08x\n", status, success_flags); status = 0xdeadbeef; @@ -3312,9 +3309,7 @@ static void test_UIActivate(IWebBrowser2 *unk, BOOL activate) } hres = IOleDocumentView_UIActivate(docview, activate); - if(activate) - todo_wine ok(hres == S_OK, "Got 0x%08x\n", hres); - else + todo_wine_if(activate) ok(hres == S_OK, "Got 0x%08x\n", hres); if(activate) {
1
0
0
0
← Newer
1
...
21
22
23
24
25
26
27
...
76
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
Results per page:
10
25
50
100
200