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
July
June
May
April
March
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
September 2016
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 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
430 discussions
Start a n
N
ew thread
Huw Davies : rpcrt4/tests: Win 8 and 10 do not correctly unmarshal a ranged enum16.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: f53c320f04114253955b509da294ef454864679d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f53c320f04114253955b509da…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Sep 6 12:56:49 2016 +0100 rpcrt4/tests: Win 8 and 10 do not correctly unmarshal a ranged enum16. In practice this bug is not observed since midl, unlike widl, does not generate ranges in inline stub mode. For interpreted stubs, where midl does generate ranges, the [out] parameters are zero-initialised by the runtime. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/rpcrt4/tests/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/rpcrt4/tests/server.c b/dlls/rpcrt4/tests/server.c index 6901f6b..f9a5a96 100644 --- a/dlls/rpcrt4/tests/server.c +++ b/dlls/rpcrt4/tests/server.c @@ -1006,8 +1006,11 @@ basic_tests(void) if (!old_windows_version) { + re = 0xdeadbeef; get_ranged_enum(&re); - ok(re == RE3, "get_ranged_enum() returned %d instead of RE3\n", re); + ok(re == RE3 || + broken(re == MAKELONG(re, 0xdead)), /* Win 8, Win 10 */ + "get_ranged_enum() returned %x instead of RE3\n", re); } }
1
0
0
0
Andrey Gusev : api-ms-win-core-shlwapi-obsolete-l1-1-0: Add dll.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: b7e2e45f932b6dc302d03d3727cb706af390b722 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b7e2e45f932b6dc302d03d372…
Author: Andrey Gusev <andrey.goosev(a)gmail.com> Date: Mon Sep 5 19:03:29 2016 +0300 api-ms-win-core-shlwapi-obsolete-l1-1-0: Add dll. Signed-off-by: Andrey Gusev <andrey.goosev(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- configure | 2 + configure.ac | 1 + .../Makefile.in | 1 + .../api-ms-win-core-shlwapi-obsolete-l1-1-0.spec | 61 ++++++++++++++++++++++ tools/make_specfiles | 1 + 5 files changed, 66 insertions(+) diff --git a/configure b/configure index da08e8f..3ed4a60 100755 --- a/configure +++ b/configure @@ -929,6 +929,7 @@ enable_api_ms_win_core_registry_l1_1_0 enable_api_ms_win_core_rtlsupport_l1_1_0 enable_api_ms_win_core_rtlsupport_l1_2_0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0 +enable_api_ms_win_core_shlwapi_obsolete_l1_1_0 enable_api_ms_win_core_string_l1_1_0 enable_api_ms_win_core_string_l2_1_0 enable_api_ms_win_core_string_obsolete_l1_1_0 @@ -17475,6 +17476,7 @@ wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_regist wine_fn_config_dll api-ms-win-core-rtlsupport-l1-1-0 enable_api_ms_win_core_rtlsupport_l1_1_0 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0 +wine_fn_config_dll api-ms-win-core-shlwapi-obsolete-l1-1-0 enable_api_ms_win_core_shlwapi_obsolete_l1_1_0 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0 wine_fn_config_dll api-ms-win-core-string-l2-1-0 enable_api_ms_win_core_string_l2_1_0 wine_fn_config_dll api-ms-win-core-string-obsolete-l1-1-0 enable_api_ms_win_core_string_obsolete_l1_1_0 diff --git a/configure.ac b/configure.ac index 0154baa..8d5116c 100644 --- a/configure.ac +++ b/configure.ac @@ -2694,6 +2694,7 @@ WINE_CONFIG_DLL(api-ms-win-core-registry-l1-1-0) WINE_CONFIG_DLL(api-ms-win-core-rtlsupport-l1-1-0) WINE_CONFIG_DLL(api-ms-win-core-rtlsupport-l1-2-0) WINE_CONFIG_DLL(api-ms-win-core-shlwapi-legacy-l1-1-0) +WINE_CONFIG_DLL(api-ms-win-core-shlwapi-obsolete-l1-1-0) WINE_CONFIG_DLL(api-ms-win-core-string-l1-1-0) WINE_CONFIG_DLL(api-ms-win-core-string-l2-1-0) WINE_CONFIG_DLL(api-ms-win-core-string-obsolete-l1-1-0) diff --git a/dlls/api-ms-win-core-shlwapi-obsolete-l1-1-0/Makefile.in b/dlls/api-ms-win-core-shlwapi-obsolete-l1-1-0/Makefile.in new file mode 100644 index 0000000..6273403 --- /dev/null +++ b/dlls/api-ms-win-core-shlwapi-obsolete-l1-1-0/Makefile.in @@ -0,0 +1 @@ +MODULE = api-ms-win-core-shlwapi-obsolete-l1-1-0.dll diff --git a/dlls/api-ms-win-core-shlwapi-obsolete-l1-1-0/api-ms-win-core-shlwapi-obsolete-l1-1-0.spec b/dlls/api-ms-win-core-shlwapi-obsolete-l1-1-0/api-ms-win-core-shlwapi-obsolete-l1-1-0.spec new file mode 100644 index 0000000..1b55281 --- /dev/null +++ b/dlls/api-ms-win-core-shlwapi-obsolete-l1-1-0/api-ms-win-core-shlwapi-obsolete-l1-1-0.spec @@ -0,0 +1,61 @@ +@ stdcall QISearch(long long long long) shlwapi.QISearch +@ stdcall SHLoadIndirectString(wstr ptr long ptr) shlwapi.SHLoadIndirectString +@ stdcall StrCatBuffA(str str long) shlwapi.StrCatBuffA +@ stdcall StrCatBuffW(wstr wstr long) shlwapi.StrCatBuffW +@ stdcall StrCatChainW(ptr long long wstr) shlwapi.StrCatChainW +@ stdcall StrChrA(str long) shlwapi.StrChrA +@ stdcall StrChrIA(str long) shlwapi.StrChrIA +@ stdcall StrChrIW(wstr long) shlwapi.StrChrIW +@ stub StrChrNIW +@ stdcall StrChrNW(wstr long long) shlwapi.StrChrNW +@ stdcall StrChrW(wstr long) shlwapi.StrChrW +@ stdcall StrCmpCA(str str) shlwapi.StrCmpCA +@ stdcall StrCmpCW(wstr wstr) shlwapi.StrCmpCW +@ stdcall StrCmpICA(str str) shlwapi.StrCmpICA +@ stdcall StrCmpICW(wstr wstr) shlwapi.StrCmpICW +@ stdcall StrCmpIW(wstr wstr) shlwapi.StrCmpIW +@ stdcall StrCmpLogicalW(wstr wstr) shlwapi.StrCmpLogicalW +@ stdcall StrCmpNA(str str long) shlwapi.StrCmpNA +@ stdcall StrCmpNCA(str ptr long) shlwapi.StrCmpNCA +@ stdcall StrCmpNCW(wstr wstr long) shlwapi.StrCmpNCW +@ stdcall StrCmpNIA(str str long) shlwapi.StrCmpNIA +@ stdcall StrCmpNICA(long long long) shlwapi.StrCmpNICA +@ stdcall StrCmpNICW(wstr wstr long) shlwapi.StrCmpNICW +@ stdcall StrCmpNIW(wstr wstr long) shlwapi.StrCmpNIW +@ stdcall StrCmpNW(wstr wstr long) shlwapi.StrCmpNW +@ stdcall StrCmpW(wstr wstr) shlwapi.StrCmpW +@ stdcall StrCpyNW(ptr wstr long) shlwapi.StrCpyNW +@ stdcall StrCpyNXA(ptr str long) shlwapi.StrCpyNXA +@ stdcall StrCpyNXW(ptr wstr long) shlwapi.StrCpyNXW +@ stdcall StrCSpnA(str str) shlwapi.StrCSpnA +@ stdcall StrCSpnIA(str str) shlwapi.StrCSpnIA +@ stdcall StrCSpnIW(wstr wstr) shlwapi.StrCSpnIW +@ stdcall StrCSpnW(wstr wstr) shlwapi.StrCSpnW +@ stdcall StrDupA(str) shlwapi.StrDupA +@ stdcall StrDupW(wstr) shlwapi.StrDupW +@ stdcall StrIsIntlEqualA(long str str long) shlwapi.StrIsIntlEqualA +@ stdcall StrIsIntlEqualW(long wstr wstr long) shlwapi.StrIsIntlEqualW +@ stdcall StrPBrkA(str str) shlwapi.StrPBrkA +@ stdcall StrPBrkW(wstr wstr) shlwapi.StrPBrkW +@ stdcall StrRChrA(str str long) shlwapi.StrRChrA +@ stdcall StrRChrIA(str str long) shlwapi.StrRChrIA +@ stdcall StrRChrIW(wstr wstr long) shlwapi.StrRChrIW +@ stdcall StrRChrW(wstr wstr long) shlwapi.StrRChrW +@ stdcall StrRStrIA(str str str) shlwapi.StrRStrIA +@ stdcall StrRStrIW(wstr wstr wstr) shlwapi.StrRStrIW +@ stdcall StrSpnA(str str) shlwapi.StrSpnA +@ stdcall StrSpnW(wstr wstr) shlwapi.StrSpnW +@ stdcall StrStrA(str str) shlwapi.StrStrA +@ stdcall StrStrIA(str str) shlwapi.StrStrIA +@ stdcall StrStrIW(wstr wstr) shlwapi.StrStrIW +@ stdcall StrStrNIW(wstr wstr long) shlwapi.StrStrNIW +@ stdcall StrStrNW(wstr wstr long) shlwapi.StrStrNW +@ stdcall StrStrW(wstr wstr) shlwapi.StrStrW +@ stdcall StrToInt64ExA(str long ptr) shlwapi.StrToInt64ExA +@ stdcall StrToInt64ExW(wstr long ptr) shlwapi.StrToInt64ExW +@ stdcall StrToIntA(str) shlwapi.StrToIntA +@ stdcall StrToIntExA(str long ptr) shlwapi.StrToIntExA +@ stdcall StrToIntExW(wstr long ptr) shlwapi.StrToIntExW +@ stdcall StrToIntW(wstr) shlwapi.StrToIntW +@ stdcall StrTrimA(str str) shlwapi.StrTrimA +@ stdcall StrTrimW(wstr wstr) shlwapi.StrTrimW diff --git a/tools/make_specfiles b/tools/make_specfiles index ad8a357..57287ea 100755 --- a/tools/make_specfiles +++ b/tools/make_specfiles @@ -223,6 +223,7 @@ my @dll_groups = "api-ms-win-downlevel-shlwapi-l1-1-0", "api-ms-win-downlevel-shlwapi-l2-1-0", "api-ms-win-core-shlwapi-legacy-l1-1-0", + "api-ms-win-core-shlwapi-obsolete-l1-1-0", "api-ms-win-core-url-l1-1-0", ], [
1
0
0
0
Jacek Caban : taskschd/tests: Fixed tests on win10.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: d62ab576e5dbf948087cadf002fb10fd3c1c8eb6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d62ab576e5dbf948087cadf00…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 6 13:35:33 2016 +0200 taskschd/tests: Fixed tests on win10. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/taskschd/tests/scheduler.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dlls/taskschd/tests/scheduler.c b/dlls/taskschd/tests/scheduler.c index 5ddc96f..20f8845 100644 --- a/dlls/taskschd/tests/scheduler.c +++ b/dlls/taskschd/tests/scheduler.c @@ -156,7 +156,8 @@ todo_wine hr = ITaskService_GetFolder(service, dot, &folder); todo_wine - ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, + "expected ERROR_INVALID_NAME, got %#x\n", hr); hr = ITaskService_GetFolder(service, bslash, &folder); ok(hr == S_OK, "GetFolder error %#x\n", hr); @@ -201,7 +202,8 @@ todo_wine ok(hr == HRESULT_FROM_WIN32(ERROR_INVALID_NAME), "expected ERROR_INVALID_NAME, got %#x\n", hr); hr = ITaskService_GetFolder(service, Wine_Folder1_Folder2, &subfolder); - ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, + "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); hr = ITaskFolder_CreateFolder(folder, bslash, v_null, &subfolder); todo_wine @@ -351,7 +353,7 @@ todo_wine ok(hr == S_OK, "DeleteFolder error %#x\n", hr); hr = ITaskFolder_DeleteFolder(folder, Wine, 0); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == S_OK /* win7 */, "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr); hr = ITaskFolder_DeleteFolder(folder, NULL, 0); ok(hr == E_ACCESSDENIED || hr == E_INVALIDARG /* Vista */, "expected E_ACCESSDENIED, got %#x\n", hr); @@ -764,13 +766,15 @@ static void test_GetTask(void) ITaskFolder_DeleteFolder(root, Wine, 0); hr = ITaskFolder_GetTask(root, Wine_Task1, &task1); - ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, + "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); hr = ITaskFolder_CreateFolder(root, Wine, v_null, &folder); ok(hr == S_OK, "CreateFolder error %#x\n", hr); hr = ITaskFolder_GetTask(root, Wine, &task1); - ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND), "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) || hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) /* win7 */, + "expected ERROR_PATH_NOT_FOUND, got %#x\n", hr); MultiByteToWideChar(CP_ACP, 0, xml1, -1, xmlW, sizeof(xmlW)/sizeof(xmlW[0])); @@ -938,7 +942,7 @@ todo_wine ok(hr == S_OK, "DeleteTask error %#x\n", hr); hr = ITaskFolder_DeleteTask(folder, Task2, 0); - ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr); + ok(hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) || hr == S_OK /* win7 */, "expected ERROR_FILE_NOT_FOUND, got %#x\n", hr); hr = ITaskFolder_RegisterTask(root, NULL, xmlW, TASK_CREATE, v_null, v_null, TASK_LOGON_NONE, v_null, &task1); ok(hr == S_OK, "RegisterTask error %#x\n", hr);
1
0
0
0
Jacek Caban : taskschd: Added ITaskDefinition:: get_Triggers implementation.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: 67abe79de009d06a92841e7774f90771f5b05cdd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=67abe79de009d06a92841e777…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Sep 6 13:00:38 2016 +0200 taskschd: Added ITaskDefinition::get_Triggers implementation. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/taskschd/task.c | 163 +++++++++++++++++++++++++++++++++++++++- dlls/taskschd/tests/scheduler.c | 11 +++ 2 files changed, 172 insertions(+), 2 deletions(-) diff --git a/dlls/taskschd/task.c b/dlls/taskschd/task.c index c33cda1..d77ffc8 100644 --- a/dlls/taskschd/task.c +++ b/dlls/taskschd/task.c @@ -37,6 +37,149 @@ WINE_DEFAULT_DEBUG_CHANNEL(taskschd); typedef struct { + ITriggerCollection ITriggerCollection_iface; + LONG ref; +} trigger_collection; + +static inline trigger_collection *impl_from_ITriggerCollection(ITriggerCollection *iface) +{ + return CONTAINING_RECORD(iface, trigger_collection, ITriggerCollection_iface); +} + +static HRESULT WINAPI TriggerCollection_QueryInterface(ITriggerCollection *iface, REFIID riid, void **ppv) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + + TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv); + + if(IsEqualGUID(&IID_IUnknown, riid) || + IsEqualGUID(&IID_IDispatch, riid) || + IsEqualGUID(&IID_ITriggerCollection, riid)) { + *ppv = &This->ITriggerCollection_iface; + }else { + FIXME("unimplemented interface %s\n", debugstr_guid(riid)); + *ppv = NULL; + return E_NOINTERFACE; + } + + IUnknown_AddRef((IUnknown*)*ppv); + return S_OK; +} + +static ULONG WINAPI TriggerCollection_AddRef(ITriggerCollection *iface) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + LONG ref = InterlockedIncrement(&This->ref); + + TRACE("(%p) ref=%d\n", This, ref); + + return ref; +} + +static ULONG WINAPI TriggerCollection_Release(ITriggerCollection *iface) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + LONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p) ref=%d\n", This, ref); + + if(!ref) + heap_free(This); + + return ref; +} + +static HRESULT WINAPI TriggerCollection_GetTypeInfoCount(ITriggerCollection *iface, UINT *count) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%p)\n", This, count); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_GetTypeInfo(ITriggerCollection *iface, UINT index, LCID lcid, ITypeInfo **info) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%u %u %p)\n", This, index, lcid, info); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_GetIDsOfNames(ITriggerCollection *iface, REFIID riid, LPOLESTR *names, + UINT count, LCID lcid, DISPID *dispid) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), names, count, lcid, dispid); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_Invoke(ITriggerCollection *iface, DISPID dispid, REFIID riid, LCID lcid, WORD flags, + DISPPARAMS *params, VARIANT *result, EXCEPINFO *excepinfo, UINT *argerr) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%d %s %x %x %p %p %p %p)\n", This, dispid, debugstr_guid(riid), lcid, flags, + params, result, excepinfo, argerr); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_get_Count(ITriggerCollection *iface, LONG *count) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%p)\n", This, count); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_get_Item(ITriggerCollection *iface, LONG index, ITrigger **trigger) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%d %p)\n", This, index, trigger); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_get__NewEnum(ITriggerCollection *iface, IUnknown **penum) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%p)\n", This, penum); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_Create(ITriggerCollection *iface, TASK_TRIGGER_TYPE2 type, ITrigger **trigger) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%d %p)\n", This, type, trigger); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_Remove(ITriggerCollection *iface, VARIANT index) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)->(%s)\n", This, debugstr_variant(&index)); + return E_NOTIMPL; +} + +static HRESULT WINAPI TriggerCollection_Clear(ITriggerCollection *iface) +{ + trigger_collection *This = impl_from_ITriggerCollection(iface); + FIXME("(%p)\n", This); + return E_NOTIMPL; +} + +static const ITriggerCollectionVtbl TriggerCollection_vtbl = { + TriggerCollection_QueryInterface, + TriggerCollection_AddRef, + TriggerCollection_Release, + TriggerCollection_GetTypeInfoCount, + TriggerCollection_GetTypeInfo, + TriggerCollection_GetIDsOfNames, + TriggerCollection_Invoke, + TriggerCollection_get_Count, + TriggerCollection_get_Item, + TriggerCollection_get__NewEnum, + TriggerCollection_Create, + TriggerCollection_Remove, + TriggerCollection_Clear +}; + +typedef struct +{ IRegistrationInfo IRegistrationInfo_iface; LONG ref; WCHAR *description, *author, *version, *date, *documentation, *uri, *source; @@ -1072,8 +1215,24 @@ static HRESULT WINAPI TaskDefinition_put_RegistrationInfo(ITaskDefinition *iface static HRESULT WINAPI TaskDefinition_get_Triggers(ITaskDefinition *iface, ITriggerCollection **triggers) { - FIXME("%p,%p: stub\n", iface, triggers); - return E_NOTIMPL; + TaskDefinition *This = impl_from_ITaskDefinition(iface); + + TRACE("%p,%p\n", This, triggers); + + if (!This->triggers) + { + trigger_collection *collection; + + collection = heap_alloc(sizeof(*collection)); + if (!collection) return E_OUTOFMEMORY; + + collection->ITriggerCollection_iface.lpVtbl = &TriggerCollection_vtbl; + collection->ref = 1; + This->triggers = &collection->ITriggerCollection_iface; + } + + ITriggerCollection_AddRef(*triggers = This->triggers); + return S_OK; } static HRESULT WINAPI TaskDefinition_put_Triggers(ITaskDefinition *iface, ITriggerCollection *triggers) diff --git a/dlls/taskschd/tests/scheduler.c b/dlls/taskschd/tests/scheduler.c index 94d9b29..5ddc96f 100644 --- a/dlls/taskschd/tests/scheduler.c +++ b/dlls/taskschd/tests/scheduler.c @@ -1291,6 +1291,7 @@ static void test_TaskDefinition(void) 100, 1, TASK_INSTANCES_STOP_EXISTING, TASK_COMPATIBILITY_V1, VARIANT_FALSE, VARIANT_FALSE, VARIANT_FALSE, VARIANT_FALSE, VARIANT_TRUE, VARIANT_TRUE, VARIANT_FALSE, VARIANT_TRUE, VARIANT_TRUE, VARIANT_TRUE }; + ITriggerCollection *trigger_col, *trigger_col2; HRESULT hr; ITaskService *service; ITaskDefinition *taskdef; @@ -1418,6 +1419,16 @@ if (hr == S_OK) if (hr == S_OK) ok(!bstr, "expected NULL, got %s\n", wine_dbgstr_w(bstr)); + hr = ITaskDefinition_get_Triggers(taskdef, &trigger_col); + ok(hr == S_OK, "get_Triggers failed: %08x\n", hr); + ok(trigger_col != NULL, "Trigers = NULL\n"); + ITriggerCollection_Release(trigger_col); + + hr = ITaskDefinition_get_Triggers(taskdef, &trigger_col2); + ok(hr == S_OK, "get_Triggers failed: %08x\n", hr); + ok(trigger_col == trigger_col2, "Trigers = NULL\n"); + ITriggerCollection_Release(trigger_col2); + IRegistrationInfo_Release(reginfo); ITaskDefinition_Release(taskdef); ITaskService_Release(service);
1
0
0
0
Huw Davies : webservices/tests: Initialise dictionary to NULL.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: f65b5e354b03b356ae7c3fdca93b0834f8de6ff6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f65b5e354b03b356ae7c3fdca…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Sep 6 10:39:25 2016 +0100 webservices/tests: Initialise dictionary to NULL. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/webservices/tests/writer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/webservices/tests/writer.c b/dlls/webservices/tests/writer.c index d9c3fb1..ebe72fe 100644 --- a/dlls/webservices/tests/writer.c +++ b/dlls/webservices/tests/writer.c @@ -465,6 +465,7 @@ static void test_WsWriteStartAttribute(void) text.text.textType = WS_XML_TEXT_TYPE_UTF8; text.value.length = 1; text.value.bytes = (BYTE *)"0"; + text.value.dictionary = NULL; hr = WsWriteText( writer, &text.text, NULL ); ok( hr == S_OK, "got %08x\n", hr ); check_output( writer, "", __LINE__ ); @@ -1130,6 +1131,7 @@ static void test_WsWriteStartCData(void) text.text.textType = WS_XML_TEXT_TYPE_UTF8; text.value.bytes = (BYTE *)"<data>"; text.value.length = 6; + text.value.dictionary = NULL; hr = WsWriteText( writer, &text.text, NULL ); ok( hr == S_OK, "got %08x\n", hr ); check_output( writer, "<t><![CDATA[<data>", __LINE__ ); @@ -1818,6 +1820,7 @@ static void test_WsWriteNode(void) utf8.text.textType = WS_XML_TEXT_TYPE_UTF8; utf8.value.bytes = (BYTE *)"value"; utf8.value.length = sizeof("value") - 1; + utf8.value.dictionary = NULL; attr.singleQuote = TRUE; attr.isXmlNs = FALSE; @@ -1840,6 +1843,7 @@ static void test_WsWriteNode(void) comment.node.nodeType = WS_XML_NODE_TYPE_COMMENT; comment.value.bytes = (BYTE *)"comment"; comment.value.length = sizeof("comment") - 1; + comment.value.dictionary = NULL; hr = WsWriteNode( writer, (const WS_XML_NODE *)&comment, NULL ); ok( hr == S_OK, "got %08x\n", hr ); @@ -1857,6 +1861,7 @@ static void test_WsWriteNode(void) utf8.value.bytes = (BYTE *)"cdata"; utf8.value.length = sizeof("cdata") - 1; + utf8.value.dictionary = NULL; text.node.nodeType = WS_XML_NODE_TYPE_TEXT; text.text = &utf8.text; hr = WsWriteNode( writer, (const WS_XML_NODE *)&text, NULL ); @@ -1868,6 +1873,7 @@ static void test_WsWriteNode(void) utf8.value.bytes = (BYTE *)"text"; utf8.value.length = sizeof("text") - 1; + utf8.value.dictionary = NULL; hr = WsWriteNode( writer, (const WS_XML_NODE *)&text, NULL ); ok( hr == S_OK, "got %08x\n", hr ); @@ -2210,6 +2216,7 @@ static void test_WsWriteText(void) utf8.text.textType = WS_XML_TEXT_TYPE_UTF8; utf8.value.bytes = (BYTE *)"test"; utf8.value.length = 4; + utf8.value.dictionary = NULL; hr = WsWriteText( writer, &utf8.text, NULL ); todo_wine ok( hr == WS_E_INVALID_FORMAT, "got %08x\n", hr );
1
0
0
0
David Keijser : kernel32: Forward CAL_RETURN_GENITIVE_NAMES to GetLocaleInfo().
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: 34a0c122cb5b767e17032d1d3e54e42cf1f536fc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=34a0c122cb5b767e17032d1d3…
Author: David Keijser <keijser(a)gmail.com> Date: Mon Sep 5 19:46:06 2016 +0300 kernel32: Forward CAL_RETURN_GENITIVE_NAMES to GetLocaleInfo(). Signed-off-by: David Keijser <keijser(a)gmail.com> Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/kernel32/time.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/kernel32/time.c b/dlls/kernel32/time.c index 0a5aa07..f4a1a35 100644 --- a/dlls/kernel32/time.c +++ b/dlls/kernel32/time.c @@ -916,6 +916,7 @@ int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType, LOCALE_SMONTHDAY, 0, /* CAL_SABBREVERASTRING */ }; + DWORD localeflags = 0; CALTYPE calinfo; if (CalType & CAL_NOUSEROVERRIDE) @@ -943,6 +944,9 @@ int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType, calinfo = CalType & 0xffff; + if (CalType & CAL_RETURN_GENITIVE_NAMES) + localeflags |= LOCALE_RETURN_GENITIVE_NAMES; + switch (calinfo) { case CAL_ICALINTVALUE: if (CalType & CAL_RETURN_NUMBER) @@ -1002,7 +1006,7 @@ int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType, case CAL_SABBREVMONTHNAME12: case CAL_SABBREVMONTHNAME13: case CAL_SYEARMONTH: - return GetLocaleInfoW(Locale, caltype_lctype_map[calinfo], lpCalData, cchData); + return GetLocaleInfoW(Locale, caltype_lctype_map[calinfo] | localeflags, lpCalData, cchData); case CAL_ITWODIGITYEARMAX: if (CalType & CAL_RETURN_NUMBER) {
1
0
0
0
Alexandre Julliard : user32: Synthesize text clipboard formats on the user32 side.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: 8865f4a4ec9f0c8ba001192ecbf509e4e62cd6d2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8865f4a4ec9f0c8ba001192ec…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 20:26:09 2016 +0900 user32: Synthesize text clipboard formats on the user32 side. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/ole32/tests/clipboard.c | 17 ++-- dlls/user32/clipboard.c | 197 +++++++++++++++++++++++++++++++++++++++--- dlls/user32/tests/clipboard.c | 40 ++++----- 3 files changed, 210 insertions(+), 44 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=8865f4a4ec9f0c8ba0011…
1
0
0
0
Alexandre Julliard : user32/tests: Add a few more tests for synthesized formats rendering.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: b1e8ed3e3b6efe9f69b41551a62b57d09543dfea URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b1e8ed3e3b6efe9f69b41551a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 15:36:01 2016 +0900 user32/tests: Add a few more tests for synthesized formats rendering. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/clipboard.c | 79 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c index cf6d744..ca81d72 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -561,6 +561,24 @@ static HBITMAP create_dib( BOOL v5 ) return ret; } +static LRESULT CALLBACK renderer_winproc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp ) +{ + static UINT rendered; + UINT ret; + + switch (msg) + { + case WM_RENDERFORMAT: + if (wp < 32) rendered |= (1 << wp); + break; + case WM_USER: + ret = rendered; + rendered = 0; + return ret; + } + return DefWindowProcA( hwnd, msg, wp, lp ); +} + static void test_synthesized(void) { static const struct test @@ -583,8 +601,12 @@ static void test_synthesized(void) HGLOBAL h, htext; HENHMETAFILE emf; BOOL r; - UINT cf, i, j, count; + UINT cf, i, j, count, rendered; HANDLE data; + HWND hwnd; + + hwnd = CreateWindowA( "static", NULL, WS_POPUP, 0, 0, 10, 10, 0, 0, 0, NULL ); + SetWindowLongPtrA( hwnd, GWLP_WNDPROC, (LONG_PTR)renderer_winproc ); htext = create_textA(); emf = create_emf(); @@ -653,6 +675,28 @@ static void test_synthesized(void) r = EmptyClipboard(); ok(r, "gle %d\n", GetLastError()); + SetClipboardData( CF_UNICODETEXT, create_textW() ); + SetClipboardData( CF_TEXT, create_textA() ); + SetClipboardData( CF_OEMTEXT, create_textA() ); + r = CloseClipboard(); + ok(r, "gle %d\n", GetLastError()); + + r = OpenClipboard( NULL ); + ok(r, "gle %d\n", GetLastError()); + cf = EnumClipboardFormats(0); + ok( cf == CF_UNICODETEXT, "cf %08x\n", cf ); + cf = EnumClipboardFormats(cf); + ok( cf == CF_TEXT, "cf %08x\n", cf ); + cf = EnumClipboardFormats(cf); + ok( cf == CF_OEMTEXT, "cf %08x\n", cf ); + cf = EnumClipboardFormats(cf); + todo_wine ok( cf == CF_LOCALE, "cf %08x\n", cf ); + if (cf == CF_LOCALE) cf = EnumClipboardFormats( cf ); + ok( cf == 0, "cf %08x\n", cf ); + + r = EmptyClipboard(); + ok(r, "gle %d\n", GetLastError()); + r = CloseClipboard(); ok(r, "gle %d\n", GetLastError()); @@ -703,7 +747,7 @@ static void test_synthesized(void) todo_wine_if (tests[i].todo) ok( count == j, "%u: count %u instead of %u\n", i, count, j ); - r = OpenClipboard(NULL); + r = OpenClipboard( hwnd ); ok(r, "%u: gle %d\n", i, GetLastError()); cf = 0; for (j = 0; tests[i].expected[j]; j++) @@ -739,13 +783,20 @@ static void test_synthesized(void) r = EmptyClipboard(); ok(r, "%u: gle %d\n", i, GetLastError()); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + ok( !rendered, "%u: formats %08x have been rendered\n", i, rendered ); + SetClipboardData( tests[i].format, 0 ); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + ok( !rendered, "%u: formats %08x have been rendered\n", i, rendered ); count = CountClipboardFormats(); ok( count == 1, "%u: count %u\n", i, count ); r = CloseClipboard(); ok(r, "%u: gle %d\n", i, GetLastError()); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + ok( !rendered, "%u: formats %08x have been rendered\n", i, rendered ); count = CountClipboardFormats(); for (j = 0; tests[i].expected[j]; j++) @@ -756,6 +807,8 @@ static void test_synthesized(void) } todo_wine_if (tests[i].todo) ok( count == j, "%u: count %u instead of %u\n", i, count, j ); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + ok( !rendered, "%u: formats %08x have been rendered\n", i, rendered ); r = OpenClipboard(NULL); ok(r, "%u: gle %d\n", i, GetLastError()); @@ -767,11 +820,28 @@ static void test_synthesized(void) ok(cf == tests[i].expected[j], "%u.%u: got %04x instead of %04x\n", i, j, cf, tests[i].expected[j] ); if (cf != tests[i].expected[j]) break; + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + ok( !rendered, "%u.%u: formats %08x have been rendered\n", i, j, rendered ); data = GetClipboardData( cf ); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); if (cf == CF_LOCALE) + { ok(data != NULL, "%u: CF_LOCALE no data\n", i); + ok( !rendered, "%u.%u: formats %08x have been rendered\n", i, j, rendered ); + } else + { ok(!data, "%u: format %04x got data %p\n", i, cf, data); + todo_wine_if( tests[i].format == CF_ENHMETAFILE && tests[i].expected[j] == CF_METAFILEPICT ) + ok( rendered == (1 << tests[i].format), + "%u.%u: formats %08x have been rendered\n", i, j, rendered ); + /* try to render a second time */ + data = GetClipboardData( cf ); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + todo_wine_if( i > 2 && j == 1 ) + ok( rendered == (1 << tests[i].format), + "%u.%u: formats %08x have been rendered\n", i, j, rendered ); + } } if (!tests[i].expected[j]) { @@ -780,6 +850,8 @@ static void test_synthesized(void) } r = CloseClipboard(); ok(r, "%u: gle %d\n", i, GetLastError()); + rendered = SendMessageA( hwnd, WM_USER, 0, 0 ); + ok( !rendered, "%u: formats %08x have been rendered\n", i, rendered ); } r = OpenClipboard(NULL); @@ -788,6 +860,7 @@ static void test_synthesized(void) ok(r, "gle %d\n", GetLastError()); r = CloseClipboard(); ok(r, "gle %d\n", GetLastError()); + DestroyWindow( hwnd ); } static CRITICAL_SECTION clipboard_cs; @@ -1622,6 +1695,8 @@ static void test_handles( HWND hwnd ) ok( is_fixed( data ), "expected fixed mem %p\n", data ); data = GetClipboardData( CF_UNICODETEXT ); ok( is_fixed( data ), "expected fixed mem %p\n", data ); + data = GetClipboardData( CF_LOCALE ); + todo_wine ok( is_fixed( data ), "expected fixed mem %p\n", data ); data = GetClipboardData( CF_BITMAP ); ok( data == bitmap, "expected bitmap %p\n", data ); data = GetClipboardData( CF_PALETTE );
1
0
0
0
Alexandre Julliard : user32: Implement GetUpdatedClipboardFormats.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: fa06ecbfceac64bf979f0d08550af0677e2a8b4d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa06ecbfceac64bf979f0d085…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Sep 6 15:35:49 2016 +0900 user32: Implement GetUpdatedClipboardFormats. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/clipboard.c | 30 +++++++++++ dlls/user32/tests/clipboard.c | 113 ++++++++++++++++++++++++++++++++++++++++++ dlls/user32/user32.spec | 1 + include/winuser.h | 1 + 4 files changed, 145 insertions(+) diff --git a/dlls/user32/clipboard.c b/dlls/user32/clipboard.c index 8e53a9f..8ca4dd5 100644 --- a/dlls/user32/clipboard.c +++ b/dlls/user32/clipboard.c @@ -407,6 +407,36 @@ BOOL WINAPI IsClipboardFormatAvailable(UINT wFormat) /************************************************************************** + * GetUpdatedClipboardFormats (USER32.@) + */ +BOOL WINAPI GetUpdatedClipboardFormats( UINT *formats, UINT size, UINT *out_size ) +{ + UINT i = 0, cf = 0; + + if (!out_size) + { + SetLastError( ERROR_NOACCESS ); + return FALSE; + } + if (!(*out_size = CountClipboardFormats())) return TRUE; /* nothing else to do */ + + if (!formats) + { + SetLastError( ERROR_NOACCESS ); + return FALSE; + } + if (size < *out_size) + { + SetLastError( ERROR_INSUFFICIENT_BUFFER ); + return FALSE; + } + /* FIXME: format list could change in the meantime */ + while ((cf = USER_Driver->pEnumClipboardFormats( cf ))) formats[i++] = cf; + return TRUE; +} + + +/************************************************************************** * GetClipboardData (USER32.@) */ HANDLE WINAPI GetClipboardData(UINT wFormat) diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c index 845e5e4..cf6d744 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -29,6 +29,7 @@ static BOOL (WINAPI *pAddClipboardFormatListener)(HWND hwnd); static BOOL (WINAPI *pRemoveClipboardFormatListener)(HWND hwnd); static DWORD (WINAPI *pGetClipboardSequenceNumber)(void); +static BOOL (WINAPI *pGetUpdatedClipboardFormats)( UINT *formats, UINT count, UINT *out_count ); static const BOOL is_win64 = sizeof(void *) > sizeof(int); static int thread_from_line; @@ -1806,6 +1807,116 @@ static void test_data_handles(void) DestroyWindow( hwnd ); } +static void test_GetUpdatedClipboardFormats(void) +{ + BOOL r; + UINT count, formats[256]; + + if (!pGetUpdatedClipboardFormats) + { + win_skip( "GetUpdatedClipboardFormats not supported\n" ); + return; + } + + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( NULL, 0, &count ); + ok( r, "gle %d\n", GetLastError() ); + ok( !count, "wrong count %u\n", count ); + + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( NULL, 256, &count ); + ok( r, "gle %d\n", GetLastError() ); + ok( !count, "wrong count %u\n", count ); + + SetLastError( 0xdeadbeef ); + r = pGetUpdatedClipboardFormats( formats, 256, NULL ); + ok( !r, "succeeded\n" ); + ok( GetLastError() == ERROR_NOACCESS, "wrong error %u\n", GetLastError() ); + + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( formats, 256, &count ); + ok( r, "gle %d\n", GetLastError() ); + ok( !count, "wrong count %u\n", count ); + + r = OpenClipboard( 0 ); + ok( r, "gle %d\n", GetLastError() ); + r = EmptyClipboard(); + ok( r, "gle %d\n", GetLastError() ); + + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( formats, 256, &count ); + ok( r, "gle %d\n", GetLastError() ); + ok( !count, "wrong count %u\n", count ); + + SetClipboardData( CF_UNICODETEXT, 0 ); + + count = 0xdeadbeef; + memset( formats, 0xcc, sizeof(formats) ); + r = pGetUpdatedClipboardFormats( formats, 256, &count ); + ok( r, "gle %d\n", GetLastError() ); + ok( count == 1, "wrong count %u\n", count ); + ok( formats[0] == CF_UNICODETEXT, "wrong format %u\n", formats[0] ); + ok( formats[1] == 0xcccccccc, "wrong format %u\n", formats[1] ); + + SetClipboardData( CF_TEXT, 0 ); + count = 0xdeadbeef; + memset( formats, 0xcc, sizeof(formats) ); + r = pGetUpdatedClipboardFormats( formats, 256, &count ); + ok( r, "gle %d\n", GetLastError() ); + ok( count == 2, "wrong count %u\n", count ); + ok( formats[0] == CF_UNICODETEXT, "wrong format %u\n", formats[0] ); + ok( formats[1] == CF_TEXT, "wrong format %u\n", formats[1] ); + ok( formats[2] == 0xcccccccc, "wrong format %u\n", formats[2] ); + + SetLastError( 0xdeadbeef ); + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( formats, 0, &count ); + ok( !r, "succeeded\n" ); + ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "wrong error %u\n", GetLastError() ); + ok( count == 2, "wrong count %u\n", count ); + + SetLastError( 0xdeadbeef ); + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( formats, 1, &count ); + ok( !r, "succeeded\n" ); + ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "wrong error %u\n", GetLastError() ); + ok( count == 2, "wrong count %u\n", count ); + + r = CloseClipboard(); + ok( r, "gle %d\n", GetLastError() ); + + count = 0xdeadbeef; + memset( formats, 0xcc, sizeof(formats) ); + r = pGetUpdatedClipboardFormats( formats, 256, &count ); + ok( r, "gle %d\n", GetLastError() ); + todo_wine ok( count == 4, "wrong count %u\n", count ); + ok( formats[0] == CF_UNICODETEXT, "wrong format %u\n", formats[0] ); + ok( formats[1] == CF_TEXT, "wrong format %u\n", formats[1] ); + todo_wine ok( formats[2] == CF_LOCALE, "wrong format %u\n", formats[2] ); + todo_wine ok( formats[3] == CF_OEMTEXT, "wrong format %u\n", formats[3] ); + ok( formats[4] == 0xcccccccc, "wrong format %u\n", formats[4] ); + + count = 0xdeadbeef; + memset( formats, 0xcc, sizeof(formats) ); + r = pGetUpdatedClipboardFormats( formats, 2, &count ); + ok( !r, "gle %d\n", GetLastError() ); + ok( GetLastError() == ERROR_INSUFFICIENT_BUFFER, "wrong error %u\n", GetLastError() ); + todo_wine ok( count == 4, "wrong count %u\n", count ); + ok( formats[0] == 0xcccccccc, "wrong format %u\n", formats[0] ); + + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( NULL, 256, &count ); + ok( !r, "gle %d\n", GetLastError() ); + ok( GetLastError() == ERROR_NOACCESS, "wrong error %u\n", GetLastError() ); + todo_wine ok( count == 4, "wrong count %u\n", count ); + + count = 0xdeadbeef; + r = pGetUpdatedClipboardFormats( NULL, 256, &count ); + ok( !r, "gle %d\n", GetLastError() ); + ok( GetLastError() == ERROR_NOACCESS, "wrong error %u\n", GetLastError() ); + todo_wine ok( count == 4, "wrong count %u\n", count ); +} + START_TEST(clipboard) { char **argv; @@ -1816,6 +1927,7 @@ START_TEST(clipboard) pAddClipboardFormatListener = (void *)GetProcAddress( mod, "AddClipboardFormatListener" ); pRemoveClipboardFormatListener = (void *)GetProcAddress( mod, "RemoveClipboardFormatListener" ); pGetClipboardSequenceNumber = (void *)GetProcAddress( mod, "GetClipboardSequenceNumber" ); + pGetUpdatedClipboardFormats = (void *)GetProcAddress( mod, "GetUpdatedClipboardFormats" ); if (argc == 4 && !strcmp( argv[2], "set_clipboard_data" )) { @@ -1838,4 +1950,5 @@ START_TEST(clipboard) test_synthesized(); test_messages(); test_data_handles(); + test_GetUpdatedClipboardFormats(); } diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index aa10a80..65a5bfe 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -374,6 +374,7 @@ @ stdcall GetTopWindow(long) @ stdcall GetUpdateRect(long ptr long) @ stdcall GetUpdateRgn(long long long) +@ stdcall GetUpdatedClipboardFormats(ptr long ptr) @ stdcall GetUserObjectInformationA (long long ptr long ptr) @ stdcall GetUserObjectInformationW (long long ptr long ptr) @ stdcall GetUserObjectSecurity (long ptr ptr long ptr) diff --git a/include/winuser.h b/include/winuser.h index 4955964..cb7c37b 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -3695,6 +3695,7 @@ WINUSERAPI HDESK WINAPI GetThreadDesktop(DWORD); WINUSERAPI HWND WINAPI GetTopWindow(HWND); WINUSERAPI BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL); WINUSERAPI INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL); +WINUSERAPI BOOL WINAPI GetUpdatedClipboardFormats(UINT*,UINT,UINT*); WINUSERAPI BOOL WINAPI GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD); WINUSERAPI BOOL WINAPI GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD); #define GetUserObjectInformation WINELIB_NAME_AW(GetUserObjectInformation)
1
0
0
0
Aric Stewart : winebus.sys: Add stub driver.
by Alexandre Julliard
06 Sep '16
06 Sep '16
Module: wine Branch: master Commit: f839f1f8aadac5d7853044537f22a127f20d6487 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f839f1f8aadac5d7853044537…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Thu Sep 1 15:18:17 2016 +0200 winebus.sys: Add stub driver. Signed-off-by: Aric Stewart <aric(a)codeweavers.com> Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- configure | 2 ++ configure.ac | 1 + dlls/winebus.sys/Makefile.in | 5 +++++ dlls/winebus.sys/main.c | 38 ++++++++++++++++++++++++++++++++++++++ dlls/winebus.sys/winebus.sys.spec | 1 + loader/wine.inf.in | 14 ++++++++++++++ 6 files changed, 61 insertions(+) diff --git a/configure b/configure index a7eac8d..da08e8f 100755 --- a/configure +++ b/configure @@ -1383,6 +1383,7 @@ enable_wimgapi enable_windowscodecs enable_windowscodecsext enable_winealsa_drv +enable_winebus_sys enable_winecoreaudio_drv enable_wined3d enable_winegstreamer @@ -18148,6 +18149,7 @@ wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test wine_fn_config_dll windowscodecsext enable_windowscodecsext implib wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test wine_fn_config_dll winealsa.drv enable_winealsa_drv +wine_fn_config_dll winebus.sys enable_winebus_sys wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv wine_fn_config_lib winecrt0 wine_fn_config_dll wined3d enable_wined3d implib diff --git a/configure.ac b/configure.ac index 0331c36..0154baa 100644 --- a/configure.ac +++ b/configure.ac @@ -3368,6 +3368,7 @@ WINE_CONFIG_TEST(dlls/windowscodecs/tests) WINE_CONFIG_DLL(windowscodecsext,,[implib]) WINE_CONFIG_TEST(dlls/windowscodecsext/tests) WINE_CONFIG_DLL(winealsa.drv) +WINE_CONFIG_DLL(winebus.sys) WINE_CONFIG_DLL(winecoreaudio.drv) WINE_CONFIG_LIB(winecrt0) WINE_CONFIG_DLL(wined3d,,[implib]) diff --git a/dlls/winebus.sys/Makefile.in b/dlls/winebus.sys/Makefile.in new file mode 100644 index 0000000..d646dc3 --- /dev/null +++ b/dlls/winebus.sys/Makefile.in @@ -0,0 +1,5 @@ +MODULE = winebus.sys +EXTRADLLFLAGS = -Wb,--subsystem,native + +C_SRCS = \ + main.c diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c new file mode 100644 index 0000000..d495cd9 --- /dev/null +++ b/dlls/winebus.sys/main.c @@ -0,0 +1,38 @@ +/* + * WINE Platform native bus driver + * + * Copyright 2016 Aric Stewart + * + * 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 <stdarg.h> + +#include "ntstatus.h" +#define WIN32_NO_STATUS +#include "windef.h" +#include "winbase.h" +#include "winternl.h" +#include "ddk/wdm.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(plugplay); + +NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) +{ + TRACE( "(%p, %s)\n", driver, debugstr_w(path->Buffer) ); + + return STATUS_SUCCESS; +} diff --git a/dlls/winebus.sys/winebus.sys.spec b/dlls/winebus.sys/winebus.sys.spec new file mode 100644 index 0000000..76421d7 --- /dev/null +++ b/dlls/winebus.sys/winebus.sys.spec @@ -0,0 +1 @@ +# nothing to export diff --git a/loader/wine.inf.in b/loader/wine.inf.in index f611ea0..4e29026 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -130,6 +130,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineBus,0,WineBusService [DefaultInstall.NT.Services] AddService=BITS,0,BITSService @@ -144,6 +145,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineBus,0,WineBusService [DefaultInstall.ntamd64.Services] AddService=BITS,0,BITSService @@ -158,6 +160,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineBus,0,WineBusService [Strings] MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions" @@ -2518,6 +2521,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 12,,mountmgr.sys,- 12,,ndis.sys,- 12,,tdi.sys,- +12,,winebus.sys,- ; skip .NET fake dlls in Wine Mono package 11,,aspnet_regiis.exe,- 11,,ngen.exe,- @@ -2560,6 +2564,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 12,,mountmgr.sys 12,,ndis.sys 12,,tdi.sys +12,,winebus.sys ; skip .NET fake dlls in Wine Mono package 11,,aspnet_regiis.exe,- 11,,ngen.exe,- @@ -3176,6 +3181,15 @@ ServiceType=32 StartType=3 ErrorControl=1 +[WineBusService] +Description="Wine Platform Bus Kernel" +DisplayName="Platform Bus Kernel" +ServiceBinary="%12%\winebus.sys" +LoadOrderGroup="WinePlugPlay" +ServiceType=1 +StartType=3 +ErrorControl=1 + [SpoolerService] Description="Loads files to memory for later printing" DisplayName="Print Spooler"
1
0
0
0
← Newer
1
...
31
32
33
34
35
36
37
...
43
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
Results per page:
10
25
50
100
200