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
January 2011
----- 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
879 discussions
Start a n
N
ew thread
Greg Geldorp : riched20/tests: Skip some tests on non-English platforms.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: bee48efdceb97d2585ebc026f36173d6bfaf67a4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bee48efdceb97d2585ebc026f…
Author: Greg Geldorp <ggeldorp(a)vmware.com> Date: Wed Jan 19 12:54:32 2011 +0100 riched20/tests: Skip some tests on non-English platforms. --- dlls/riched20/tests/editor.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 63b23e9..57827db 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -4822,6 +4822,7 @@ static void test_EM_FORMATRANGE(void) HDC hdc; HWND hwndRichEdit = new_richedit(NULL); FORMATRANGE fr; + BOOL skip_non_english; static const struct { const char *string; /* The string */ int first; /* First 'pagebreak', 0 for don't care */ @@ -4834,6 +4835,10 @@ static void test_EM_FORMATRANGE(void) {"WINE\r\n\r\nwine\r\nwine", 5, 6} }; + skip_non_english = (PRIMARYLANGID(GetUserDefaultLangID()) != LANG_ENGLISH); + if (skip_non_english) + skip("Skipping some tests on non-English platform\n"); + hdc = GetDC(hwndRichEdit); ok(hdc != NULL, "Could not get HDC\n"); @@ -4895,7 +4900,8 @@ static void test_EM_FORMATRANGE(void) fr.chrg.cpMax = -1; r = SendMessage(hwndRichEdit, EM_FORMATRANGE, TRUE, (LPARAM) &fr); todo_wine { - ok(fr.rc.bottom == (stringsize.cy * tpp_y), "Expected bottom to be %d, got %d\n", (stringsize.cy * tpp_y), fr.rc.bottom); + if (! skip_non_english) + ok(fr.rc.bottom == (stringsize.cy * tpp_y), "Expected bottom to be %d, got %d\n", (stringsize.cy * tpp_y), fr.rc.bottom); } if (fmtstrings[i].first) todo_wine { @@ -4911,7 +4917,7 @@ static void test_EM_FORMATRANGE(void) todo_wine { ok(r == fmtstrings[i].second, "Expected %d, got %d\n", fmtstrings[i].second, r); } - else + else if (! skip_non_english) ok (r < len, "Expected < %d, got %d\n", len, r); /* There is at least on more page, but we don't care */
1
0
0
0
Greg Geldorp : urlmon/tests: Fix tests when connecting via proxy.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: 3f153007ba7c19fdb8b30c19143ad26e146c5eee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3f153007ba7c19fdb8b30c191…
Author: Greg Geldorp <ggeldorp(a)vmware.com> Date: Wed Jan 19 12:44:07 2011 +0100 urlmon/tests: Fix tests when connecting via proxy. --- dlls/urlmon/tests/protocol.c | 24 +++++++++++++++++++++++- dlls/urlmon/tests/url.c | 31 +++++++++++++++++++++++++++++-- 2 files changed, 52 insertions(+), 3 deletions(-) diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c index dd8cbf9..dcfe20c 100644 --- a/dlls/urlmon/tests/protocol.c +++ b/dlls/urlmon/tests/protocol.c @@ -221,6 +221,25 @@ static int strcmp_ww(LPCWSTR strw1, LPCWSTR strw2) return lstrcmpA(stra1, stra2); } +static BOOL proxy_active(void) +{ + HKEY internet_settings; + DWORD proxy_enable; + DWORD size; + + if (RegOpenKeyExA(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", + 0, KEY_QUERY_VALUE, &internet_settings) != ERROR_SUCCESS) + return FALSE; + + size = sizeof(DWORD); + if (RegQueryValueExA(internet_settings, "ProxyEnable", NULL, NULL, (LPBYTE) &proxy_enable, &size) != ERROR_SUCCESS) + proxy_enable = 0; + + RegCloseKey(internet_settings); + + return proxy_enable != 0; +} + static HRESULT WINAPI HttpSecurity_QueryInterface(IHttpSecurity *iface, REFIID riid, void **ppv) { if(IsEqualGUID(&IID_IUnknown, riid) @@ -581,7 +600,10 @@ static void call_continue(PROTOCOLDATA *protocol_data) CLEAR_CALLED(ReportProgress_CONNECTING); CLEAR_CALLED(ReportProgress_PROXYDETECTING); }else if(test_redirect) { - CHECK_CALLED(ReportProgress_FINDINGRESOURCE); + if (! proxy_active()) + CHECK_CALLED(ReportProgress_FINDINGRESOURCE); + else + CLEAR_CALLED(ReportProgress_FINDINGRESOURCE); }else todo_wine { CHECK_NOT_CALLED(ReportProgress_FINDINGRESOURCE); /* IE7 does call this */ diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c index 47b2e79..21d5fd6 100644 --- a/dlls/urlmon/tests/url.c +++ b/dlls/urlmon/tests/url.c @@ -246,6 +246,25 @@ static const char *debugstr_guid(REFIID riid) return buf; } +static BOOL proxy_active(void) +{ + HKEY internet_settings; + DWORD proxy_enable; + DWORD size; + + if (RegOpenKeyExA(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", + 0, KEY_QUERY_VALUE, &internet_settings) != ERROR_SUCCESS) + return FALSE; + + size = sizeof(DWORD); + if (RegQueryValueExA(internet_settings, "ProxyEnable", NULL, NULL, (LPBYTE) &proxy_enable, &size) != ERROR_SUCCESS) + proxy_enable = 0; + + RegCloseKey(internet_settings); + + return proxy_enable != 0; +} + static BOOL is_urlmon_protocol(int prot) { return prot == FILE_TEST || prot == HTTP_TEST || prot == HTTPS_TEST || prot == FTP_TEST || prot == MK_TEST; @@ -2799,8 +2818,16 @@ static void test_BindToStorage(int protocol, DWORD flags, DWORD t) CHECK_CALLED(GetRootSecurityId); } if(http_is_first || (test_protocol == HTTPS_TEST && !(flags & BINDTEST_INVALID_CN))) { - CHECK_CALLED(OnProgress_FINDINGRESOURCE); - CHECK_CALLED(OnProgress_CONNECTING); + if (! proxy_active()) + { + CHECK_CALLED(OnProgress_FINDINGRESOURCE); + CHECK_CALLED(OnProgress_CONNECTING); + } + else + { + CLEAR_CALLED(OnProgress_FINDINGRESOURCE); + CLEAR_CALLED(OnProgress_CONNECTING); + } }else todo_wine { CHECK_NOT_CALLED(OnProgress_FINDINGRESOURCE); /* IE7 does call this */
1
0
0
0
Alexander Morozov : shell32: Added typelib.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: 535f0bce59ed55dc4e0511259c7452bf7a9a59a6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=535f0bce59ed55dc4e0511259…
Author: Alexander Morozov <amorozov(a)etersoft.ru> Date: Tue Jan 18 21:36:08 2011 +0300 shell32: Added typelib. --- .gitignore | 1 + dlls/shell32/Makefile.in | 2 ++ dlls/shell32/regsvr.c | 13 +++++++++++++ dlls/shell32/shell32.rc | 3 +++ dlls/shell32/shell32_tlb.idl | 19 +++++++++++++++++++ 5 files changed, 38 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index cbc189d..3817eea 100644 --- a/.gitignore +++ b/.gitignore @@ -127,6 +127,7 @@ dlls/rpcrt4/tests/server_c.c dlls/rpcrt4/tests/server_s.c dlls/shdocvw/shdocvw_v1.tlb dlls/shell32/AUTHORS +dlls/shell32/shell32_tlb.tlb dlls/stdole2.tlb/std_ole_v2.tlb dlls/stdole32.tlb/std_ole_v1.tlb dlls/sti/sti_wia.h diff --git a/dlls/shell32/Makefile.in b/dlls/shell32/Makefile.in index 7755111..15cb9d5 100644 --- a/dlls/shell32/Makefile.in +++ b/dlls/shell32/Makefile.in @@ -89,6 +89,8 @@ RC_SRCS = \ PO_SRCS = shell32.rc +IDL_TLB_SRCS = shell32_tlb.idl + SVG_SRCS = \ cdrom.svg \ control.svg \ diff --git a/dlls/shell32/regsvr.c b/dlls/shell32/regsvr.c index f09d72b..9d3ca65 100644 --- a/dlls/shell32/regsvr.c +++ b/dlls/shell32/regsvr.c @@ -22,6 +22,8 @@ #include <string.h> #include <stdio.h> +#define COBJMACROS + #include "windef.h" #include "winbase.h" #include "winuser.h" @@ -837,6 +839,8 @@ static struct regsvr_namespace const namespace_extensions_list[] = { HRESULT WINAPI DllRegisterServer(void) { HRESULT hr; + ITypeLib *tl; + static const WCHAR wszShell32[] = { 's','h','e','l','l','3','2','.','d','l','l', 0 }; TRACE("\n"); @@ -847,6 +851,12 @@ HRESULT WINAPI DllRegisterServer(void) hr = SHELL_RegisterShellFolders(); if (SUCCEEDED(hr)) hr = register_namespace_extensions(namespace_extensions_list); + if (SUCCEEDED(hr)) + { + hr = LoadTypeLibEx(wszShell32, REGKIND_REGISTER, &tl); + if(SUCCEEDED(hr)) + ITypeLib_Release(tl); + } return hr; } @@ -864,5 +874,8 @@ HRESULT WINAPI DllUnregisterServer(void) hr = unregister_interfaces(interface_list); if (SUCCEEDED(hr)) hr = unregister_namespace_extensions(namespace_extensions_list); + if (SUCCEEDED(hr)) + hr = UnRegisterTypeLib(&LIBID_Shell32, 1, 0, LOCALE_SYSTEM_DEFAULT, + SYS_WIN32); return hr; } diff --git a/dlls/shell32/shell32.rc b/dlls/shell32/shell32.rc index bc8e8df..4459be0 100644 --- a/dlls/shell32/shell32.rc +++ b/dlls/shell32/shell32.rc @@ -260,6 +260,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA." LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL +/* @makedep: shell32_tlb.tlb */ +1 TYPELIB shell32_tlb.tlb + shv_accel ACCELERATORS BEGIN VK_F5, FCIDM_SHVIEW_REFRESH, VIRTKEY diff --git a/dlls/shell32/shell32_tlb.idl b/dlls/shell32/shell32_tlb.idl new file mode 100644 index 0000000..2b6c719 --- /dev/null +++ b/dlls/shell32/shell32_tlb.idl @@ -0,0 +1,19 @@ +/* + * Copyright 2010 Alexander Morozov for Etersoft + * + * 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 "shldisp.idl"
1
0
0
0
Alexander Morozov : shell32: Register CLSID_Shell.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: 1adbaadc892b0318a80b5e9db7913222217d56a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1adbaadc892b0318a80b5e9db…
Author: Alexander Morozov <amorozov(a)etersoft.ru> Date: Tue Jan 18 21:35:57 2011 +0300 shell32: Register CLSID_Shell. --- dlls/shell32/regsvr.c | 91 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 91 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/regsvr.c b/dlls/shell32/regsvr.c index 9759b00..f09d72b 100644 --- a/dlls/shell32/regsvr.c +++ b/dlls/shell32/regsvr.c @@ -75,6 +75,8 @@ struct regsvr_coclass DWORD dwCallForAttributes; LPCSTR clsid_str; /* can be NULL to omit */ LPCSTR progid; /* can be NULL to omit */ + LPCSTR viprogid; /* can be NULL to omit */ + LPCSTR progid_extra; /* can be NULL to omit */ UINT idDefaultIcon; /* can be 0 to omit */ }; @@ -117,6 +119,8 @@ static WCHAR const ps_clsid32_keyname[17] = { 'i', 'd', '3', '2', 0 }; static WCHAR const clsid_keyname[6] = { 'C', 'L', 'S', 'I', 'D', 0 }; +static WCHAR const curver_keyname[7] = { + 'C', 'u', 'r', 'V', 'e', 'r', 0 }; static WCHAR const ips_keyname[13] = { 'I', 'n', 'P', 'r', 'o', 'c', 'S', 'e', 'r', 'v', 'e', 'r', 0 }; @@ -125,6 +129,10 @@ static WCHAR const ips32_keyname[15] = { '3', '2', 0 }; static WCHAR const progid_keyname[7] = { 'P', 'r', 'o', 'g', 'I', 'D', 0 }; +static WCHAR const viprogid_keyname[25] = { + 'V', 'e', 'r', 's', 'i', 'o', 'n', 'I', 'n', 'd', 'e', 'p', + 'e', 'n', 'd', 'e', 'n', 't', 'P', 'r', 'o', 'g', 'I', 'D', + 0 }; static WCHAR const shellex_keyname[8] = { 's', 'h', 'e', 'l', 'l', 'e', 'x', 0 }; static WCHAR const shellfolder_keyname[12] = { @@ -150,6 +158,9 @@ static LONG register_key_defvalueW(HKEY base, WCHAR const *name, WCHAR const *value); static LONG register_key_defvalueA(HKEY base, WCHAR const *name, char const *value); +static LONG register_progid(WCHAR const *clsid, + char const *progid, char const *curver_progid, + char const *name, char const *extra); /*********************************************************************** * register_interfaces @@ -385,6 +396,16 @@ static HRESULT register_coclasses(struct regsvr_coclass const *list) if (res != ERROR_SUCCESS) goto error_close_clsid_key; } + if (list->viprogid) { + res = register_key_defvalueA(clsid_key, viprogid_keyname, + list->viprogid); + if (res != ERROR_SUCCESS) goto error_close_clsid_key; + + res = register_progid(buf, list->viprogid, list->progid, + list->name, list->progid_extra); + if (res != ERROR_SUCCESS) goto error_close_clsid_key; + } + error_close_clsid_key: RegCloseKey(clsid_key); } @@ -421,6 +442,12 @@ static HRESULT unregister_coclasses(struct regsvr_coclass const *list) if (res == ERROR_FILE_NOT_FOUND) res = ERROR_SUCCESS; if (res != ERROR_SUCCESS) goto error_close_coclass_key; } + + if (list->viprogid) { + res = RegDeleteTreeA(HKEY_CLASSES_ROOT, list->viprogid); + if (res == ERROR_FILE_NOT_FOUND) res = ERROR_SUCCESS; + if (res != ERROR_SUCCESS) goto error_close_coclass_key; + } } error_close_coclass_key: @@ -541,6 +568,55 @@ static LONG register_key_defvalueA( } /*********************************************************************** + * regsvr_progid + */ +static LONG register_progid( + WCHAR const *clsid, + char const *progid, + char const *curver_progid, + char const *name, + char const *extra) { + LONG res; + HKEY progid_key; + + res = RegCreateKeyExA(HKEY_CLASSES_ROOT, progid, 0, + NULL, 0, KEY_READ | KEY_WRITE, NULL, + &progid_key, NULL); + if (res != ERROR_SUCCESS) return res; + + if (name) { + res = RegSetValueExA(progid_key, NULL, 0, REG_SZ, + (CONST BYTE*)name, strlen(name) + 1); + if (res != ERROR_SUCCESS) goto error_close_progid_key; + } + + if (clsid) { + res = register_key_defvalueW(progid_key, clsid_keyname, clsid); + if (res != ERROR_SUCCESS) goto error_close_progid_key; + } + + if (curver_progid) { + res = register_key_defvalueA(progid_key, curver_keyname, + curver_progid); + if (res != ERROR_SUCCESS) goto error_close_progid_key; + } + + if (extra) { + HKEY extra_key; + + res = RegCreateKeyExA(progid_key, extra, 0, + NULL, 0, KEY_READ | KEY_WRITE, NULL, + &extra_key, NULL); + if (res == ERROR_SUCCESS) + RegCloseKey(extra_key); + } + +error_close_progid_key: + RegCloseKey(progid_key); + return res; +} + +/*********************************************************************** * coclass list */ static GUID const CLSID_Desktop = { @@ -642,6 +718,8 @@ static struct regsvr_coclass const coclass_list[] = { 0, NULL, NULL, + NULL, + NULL, IDI_SHELL_FULL_RECYCLE_BIN }, { &CLSID_ShellFSFolder, @@ -695,6 +773,19 @@ static struct regsvr_coclass const coclass_list[] = { "shell32.dll", "Apartment" }, + { &CLSID_Shell, + "Shell Automation Service", + 0, + NULL, + "shell32.dll", + "Apartment", + 0, + 0, + 0, + NULL, + "Shell.Application.1", + "Shell.Application" + }, { NULL } /* list terminator */ };
1
0
0
0
Alexander Morozov : shell32: Add stub implementation of IShellDispatch.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: 8b30849824a6a7bdf454574191729e1ed6f65cbc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b30849824a6a7bdf45457419…
Author: Alexander Morozov <amorozov(a)etersoft.ru> Date: Tue Jan 18 21:35:41 2011 +0300 shell32: Add stub implementation of IShellDispatch. --- dlls/shell32/Makefile.in | 1 + dlls/shell32/shell32_main.h | 1 + dlls/shell32/shelldispatch.c | 356 ++++++++++++++++++++++++++++++++++++++++++ dlls/shell32/shellole.c | 2 + 4 files changed, 360 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=8b30849824a6a7bdf4545…
1
0
0
0
Alexandre Julliard : server: Add symbolic names in filesystem change actions traces.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: b3882bb33937c802b4ee1a5832e10908a72f20bc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b3882bb33937c802b4ee1a583…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 19 14:20:40 2011 +0100 server: Add symbolic names in filesystem change actions traces. --- server/trace.c | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/server/trace.c b/server/trace.c index d083d2d..e01a3f1 100644 --- a/server/trace.c +++ b/server/trace.c @@ -993,6 +993,18 @@ static void dump_varargs_object_attributes( const char *prefix, data_size_t size static void dump_varargs_filesystem_event( const char *prefix, data_size_t size ) { + static const char * const actions[] = { + NULL, + "ADDED", + "REMOVED", + "MODIFIED", + "RENAMED_OLD_NAME", + "RENAMED_NEW_NAME", + "ADDED_STREAM", + "REMOVED_STREAM", + "MODIFIED_STREAM" + }; + fprintf( stderr,"%s{", prefix ); while (size) { @@ -1000,8 +1012,11 @@ static void dump_varargs_filesystem_event( const char *prefix, data_size_t size data_size_t len = (offsetof( struct filesystem_event, name[event->len] ) + sizeof(int)-1) / sizeof(int) * sizeof(int); if (size < len) break; - fprintf( stderr, "{action=%x,len=%u,name=\"%.*s\"}", - event->action, event->len, event->len, event->name ); + if (event->action < sizeof(actions)/sizeof(actions[0]) && actions[event->action]) + fprintf( stderr, "{action=%s", actions[event->action] ); + else + fprintf( stderr, "{action=%u", event->action ); + fprintf( stderr, ",name=\"%.*s\"}", event->len, event->name ); size -= len; remove_data( len ); if (size)fputc( ',', stderr );
1
0
0
0
Piotr Caban : kernel32/tests: Added file move/ rename ReadDirectoryChangesW tests.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: 9dbdd8c83c9dfcf1f9a510b2bdf0075c56c3862d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9dbdd8c83c9dfcf1f9a510b2b…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Jan 18 11:24:58 2011 +0100 kernel32/tests: Added file move/rename ReadDirectoryChangesW tests. --- dlls/kernel32/tests/change.c | 81 ++++++++++++++++++++++++++++++++---------- 1 files changed, 62 insertions(+), 19 deletions(-) diff --git a/dlls/kernel32/tests/change.c b/dlls/kernel32/tests/change.c index 0e8804f..8e22dd7 100644 --- a/dlls/kernel32/tests/change.c +++ b/dlls/kernel32/tests/change.c @@ -795,8 +795,9 @@ static void test_readdirectorychanges_cr(void) static const WCHAR szBoo[] = { '\\','b','o','o','\\',0 }; static const WCHAR szDir[] = { 'd','i','r',0 }; static const WCHAR szFile[] = { 'f','i','l','e',0 }; + static const WCHAR szBackslash[] = { '\\',0 }; - WCHAR path[MAX_PATH], file[MAX_PATH], dir[MAX_PATH]; + WCHAR path[MAX_PATH], file[MAX_PATH], dir[MAX_PATH], sub_file[MAX_PATH]; FILE_NOTIFY_INFORMATION fni[1024], *fni_next; OVERLAPPED ov; HANDLE hdir, hfile; @@ -824,6 +825,9 @@ static void test_readdirectorychanges_cr(void) lstrcatW(dir, szDir); lstrcpyW(file, path); lstrcatW(file, szFile); + lstrcpyW(sub_file, dir); + lstrcatW(sub_file, szBackslash); + lstrcatW(sub_file, szFile); DeleteFileW(file); RemoveDirectoryW(dir); @@ -864,6 +868,38 @@ static void test_readdirectorychanges_cr(void) r = CreateDirectoryW(dir, NULL); ok(r == TRUE, "failed to create directory\n"); + r = MoveFileW(file, sub_file); + ok(r == TRUE, "failed to move file\n"); + + r = SleepEx(1000, TRUE); + ok(r != 0, "failed to receive file move event\n"); + ok(fni->NextEntryOffset == 0, "there should be no more events in buffer\n"); + ok(fni->Action == FILE_ACTION_REMOVED, "Action = %d\n", fni->Action); + ok(fni->FileNameLength == lstrlenW(szFile)*sizeof(WCHAR), + "FileNameLength = %d\n", fni->FileNameLength); + ok(!memcmp(fni->FileName, szFile, lstrlenW(szFile)*sizeof(WCHAR)), + "FileName = %s\n", wine_dbgstr_w(fni->FileName)); + + r = pReadDirectoryChangesW(hdir, fni, sizeof(fni), FALSE, + FILE_NOTIFY_CHANGE_FILE_NAME, NULL, &ov, readdirectorychanges_cr); + ok(r == TRUE, "pReadDirectoryChangesW failed\n"); + + r = MoveFileW(sub_file, file); + ok(r == TRUE, "failed to move file\n"); + + r = SleepEx(1000, TRUE); + ok(r != 0, "failed to receive file move event\n"); + ok(fni->NextEntryOffset == 0, "there should be no more events in buffer\n"); + ok(fni->Action == FILE_ACTION_ADDED, "Action = %d\n", fni->Action); + ok(fni->FileNameLength == lstrlenW(szFile)*sizeof(WCHAR), + "FileNameLength = %d\n", fni->FileNameLength); + ok(!memcmp(fni->FileName, szFile, lstrlenW(szFile)*sizeof(WCHAR)), + "FileName = %s\n", wine_dbgstr_w(fni->FileName)); + + r = pReadDirectoryChangesW(hdir, fni, sizeof(fni), FALSE, + FILE_NOTIFY_CHANGE_FILE_NAME, NULL, &ov, readdirectorychanges_cr); + ok(r == TRUE, "pReadDirectoryChangesW failed\n"); + r = DeleteFileW(file); ok(r == TRUE, "failed to delete file\n"); @@ -892,29 +928,36 @@ static void test_readdirectorychanges_cr(void) r = SleepEx(1000, TRUE); ok(r != 0, "failed to receive directory move event\n"); - ok(fni->Action == FILE_ACTION_RENAMED_OLD_NAME, "Action = %d\n", fni->Action); - ok(fni->FileNameLength == lstrlenW(szDir)*sizeof(WCHAR), - "FileNameLength = %d\n", fni->FileNameLength); - ok(!memcmp(fni->FileName, szDir, lstrlenW(szDir)*sizeof(WCHAR)), - "FileName = %s\n", wine_dbgstr_w(fni->FileName)); - if (fni->NextEntryOffset) + if (fni->Action == FILE_ACTION_RENAMED_OLD_NAME) + { + ok(fni->Action == FILE_ACTION_RENAMED_OLD_NAME, "Action = %d\n", fni->Action); + ok(fni->FileNameLength == lstrlenW(szDir)*sizeof(WCHAR), + "FileNameLength = %d\n", fni->FileNameLength); + ok(!memcmp(fni->FileName, szDir, lstrlenW(szDir)*sizeof(WCHAR)), + "FileName = %s\n", wine_dbgstr_w(fni->FileName)); + ok(fni->NextEntryOffset != 0, "no next entry in movement event\n"); fni_next = (FILE_NOTIFY_INFORMATION*)((char*)fni+fni->NextEntryOffset); + ok(fni_next->NextEntryOffset == 0, "there should be no more events in buffer\n"); + ok(fni_next->Action == FILE_ACTION_RENAMED_NEW_NAME, "Action = %d\n", fni_next->Action); + ok(fni_next->FileNameLength == lstrlenW(szFile)*sizeof(WCHAR), + "FileNameLength = %d\n", fni_next->FileNameLength); + ok(!memcmp(fni_next->FileName, szFile, lstrlenW(szFile)*sizeof(WCHAR)), + "FileName = %s\n", wine_dbgstr_w(fni_next->FileName)); + } else { - r = pReadDirectoryChangesW(hdir, fni, sizeof(fni), FALSE, - FILE_NOTIFY_CHANGE_DIR_NAME, NULL, &ov, readdirectorychanges_cr); - ok(r == TRUE, "pReadDirectoryChangesW failed\n"); + todo_wine ok(0, "Expected rename event\n"); - r = SleepEx(1000, TRUE); - ok(r != 0, "failed to receive directory move event\n"); - fni_next = fni; + if (fni->NextEntryOffset == 0) + { + r = pReadDirectoryChangesW(hdir, fni, sizeof(fni), FALSE, + FILE_NOTIFY_CHANGE_DIR_NAME, NULL, &ov, readdirectorychanges_cr); + ok(r == TRUE, "pReadDirectoryChangesW failed\n"); + + r = SleepEx(1000, TRUE); + ok(r != 0, "failed to receive directory move event\n"); + } } - ok(fni_next->NextEntryOffset == 0, "there should be no more events in buffer\n"); - ok(fni_next->Action == FILE_ACTION_RENAMED_NEW_NAME, "Action = %d\n", fni_next->Action); - ok(fni_next->FileNameLength == lstrlenW(szFile)*sizeof(WCHAR), - "FileNameLength = %d\n", fni_next->FileNameLength); - ok(!memcmp(fni_next->FileName, szFile, lstrlenW(szFile)*sizeof(WCHAR)), - "FileName = %s\n", wine_dbgstr_w(fni_next->FileName)); r = CreateDirectoryW(dir, NULL); ok(r == TRUE, "failed to create directory\n");
1
0
0
0
Piotr Caban : server: Don' t report rename events when file is moved between directories.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: be5a757c7acaa83cd651e5e043819d074832d369 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=be5a757c7acaa83cd651e5e04…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Jan 18 11:24:49 2011 +0100 server: Don't report rename events when file is moved between directories. --- server/change.c | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/server/change.c b/server/change.c index e448c13..6461e95 100644 --- a/server/change.c +++ b/server/change.c @@ -123,6 +123,7 @@ static struct fd *inotify_fd; struct change_record { struct list entry; + unsigned int cookie; struct filesystem_event event; }; @@ -605,7 +606,7 @@ static int inotify_get_poll_events( struct fd *fd ) } static void inotify_do_change_notify( struct dir *dir, unsigned int action, - const char *relpath ) + unsigned int cookie, const char *relpath ) { struct change_record *record; @@ -618,6 +619,7 @@ static void inotify_do_change_notify( struct dir *dir, unsigned int action, if (!record) return; + record->cookie = cookie; record->event.action = action; memcpy( record->event.name, relpath, len ); record->event.len = len; @@ -809,7 +811,7 @@ static void inotify_notify_all( struct inotify_event *ie ) { LIST_FOR_EACH_ENTRY( dir, &i->dirs, struct dir, in_entry ) if ((filter & dir->filter) && (i==inode || dir->subtree)) - inotify_do_change_notify( dir, action, path ); + inotify_do_change_notify( dir, action, ie->cookie, path ); if (!i->name || !prepend( &path, i->name )) break; @@ -1177,6 +1179,22 @@ DECL_HANDLER(read_change) LIST_FOR_EACH_ENTRY( record, &events, struct change_record, entry ) { data_size_t len = offsetof( struct filesystem_event, name[record->event.len] ); + + /* FIXME: rename events are sometimes reported as delete/create */ + if (record->event.action == FILE_ACTION_RENAMED_OLD_NAME) + { + struct list *elem = list_next( &events, &record->entry ); + if (elem) + next = LIST_ENTRY(elem, struct change_record, entry); + + if (elem && next->cookie == record->cookie) + next->cookie = 0; + else + record->event.action = FILE_ACTION_REMOVED; + } + else if (record->event.action == FILE_ACTION_RENAMED_NEW_NAME && record->cookie) + record->event.action = FILE_ACTION_ADDED; + memcpy( event, &record->event, len ); event += len; if (len % sizeof(int))
1
0
0
0
Piotr Caban : server: Return multiple events in read_changes.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: b614a15328b05d962c31b54b7e078580be23be8a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b614a15328b05d962c31b54b7…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Jan 18 11:24:33 2011 +0100 server: Return multiple events in read_changes. --- dlls/ntdll/directory.c | 69 ++++++++++++++++++++++++++------------- include/wine/server_protocol.h | 14 ++++++-- server/change.c | 61 ++++++++++++++++++++++++++--------- server/protocol.def | 11 +++++- server/request.h | 3 +- server/trace.c | 21 +++++++++++- 6 files changed, 131 insertions(+), 48 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b614a15328b05d962c31b…
1
0
0
0
Vitaliy Margolen : dinput: Combine ASCII and Unicode Direct Input Device QueryInterface.
by Alexandre Julliard
19 Jan '11
19 Jan '11
Module: wine Branch: master Commit: 92ac7861f5c9d8ff0d02dbc6f9ec514289826162 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=92ac7861f5c9d8ff0d02dbc6f…
Author: Vitaliy Margolen <wine-patches(a)kievinfo.com> Date: Tue Jan 18 21:06:48 2011 -0700 dinput: Combine ASCII and Unicode Direct Input Device QueryInterface. --- dlls/dinput/device.c | 89 ++++++++++++++----------------------------------- 1 files changed, 26 insertions(+), 63 deletions(-) diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c index c54a756..44c99dd 100644 --- a/dlls/dinput/device.c +++ b/dlls/dinput/device.c @@ -774,76 +774,39 @@ ULONG WINAPI IDirectInputDevice2AImpl_Release(LPDIRECTINPUTDEVICE8A iface) return IDirectInputDevice2WImpl_Release(IDirectInputDevice8W_from_impl(This)); } -HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface( - LPDIRECTINPUTDEVICE8A iface,REFIID riid,LPVOID *ppobj -) +HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface(LPDIRECTINPUTDEVICE8W iface, REFIID riid, LPVOID *ppobj) { - IDirectInputDeviceImpl *This = impl_from_IDirectInputDevice8A(iface); - - TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj); - if (IsEqualGUID(&IID_IUnknown,riid)) { - IDirectInputDevice2_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDeviceA,riid)) { - IDirectInputDevice2_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDevice2A,riid)) { - IDirectInputDevice2_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDevice7A,riid)) { - IDirectInputDevice7_AddRef(iface); - *ppobj = This; - return DI_OK; + IDirectInputDeviceImpl *This = impl_from_IDirectInputDevice8W(iface); + + TRACE("(%p this=%p,%s,%p)\n", iface, This, debugstr_guid(riid), ppobj); + if (IsEqualGUID(&IID_IUnknown, riid) || + IsEqualGUID(&IID_IDirectInputDeviceA, riid) || + IsEqualGUID(&IID_IDirectInputDevice2A, riid) || + IsEqualGUID(&IID_IDirectInputDevice7A, riid) || + IsEqualGUID(&IID_IDirectInputDevice8A, riid)) + { + IDirectInputDevice2_AddRef(iface); + *ppobj = IDirectInputDevice8A_from_impl(This); + return DI_OK; } - if (IsEqualGUID(&IID_IDirectInputDevice8A,riid)) { - IDirectInputDevice8_AddRef(iface); - *ppobj = This; - return DI_OK; + if (IsEqualGUID(&IID_IDirectInputDeviceW, riid) || + IsEqualGUID(&IID_IDirectInputDevice2W, riid) || + IsEqualGUID(&IID_IDirectInputDevice7W, riid) || + IsEqualGUID(&IID_IDirectInputDevice8W, riid)) + { + IDirectInputDevice2_AddRef(iface); + *ppobj = IDirectInputDevice8W_from_impl(This); + return DI_OK; } - TRACE("Unsupported interface !\n"); + + WARN("Unsupported interface!\n"); return E_FAIL; } -HRESULT WINAPI IDirectInputDevice2WImpl_QueryInterface( - LPDIRECTINPUTDEVICE8W iface,REFIID riid,LPVOID *ppobj -) +HRESULT WINAPI IDirectInputDevice2AImpl_QueryInterface(LPDIRECTINPUTDEVICE8A iface, REFIID riid, LPVOID *ppobj) { - IDirectInputDeviceImpl *This = impl_from_IDirectInputDevice8W(iface); - - TRACE("(this=%p,%s,%p)\n",This,debugstr_guid(riid),ppobj); - if (IsEqualGUID(&IID_IUnknown,riid)) { - IDirectInputDevice2_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDeviceW,riid)) { - IDirectInputDevice2_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDevice2W,riid)) { - IDirectInputDevice2_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDevice7W,riid)) { - IDirectInputDevice7_AddRef(iface); - *ppobj = This; - return DI_OK; - } - if (IsEqualGUID(&IID_IDirectInputDevice8W,riid)) { - IDirectInputDevice8_AddRef(iface); - *ppobj = This; - return DI_OK; - } - TRACE("Unsupported interface !\n"); - return E_FAIL; + IDirectInputDeviceImpl *This = impl_from_IDirectInputDevice8A(iface); + return IDirectInputDevice2WImpl_QueryInterface(IDirectInputDevice8W_from_impl(This), riid, ppobj); } ULONG WINAPI IDirectInputDevice2WImpl_AddRef(LPDIRECTINPUTDEVICE8W iface)
1
0
0
0
← Newer
1
...
29
30
31
32
33
34
35
...
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