ReactOS.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
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
List overview
Download
Ros-diffs
April 2014
----- 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
ros-diffs@reactos.org
15 participants
492 discussions
Start a n
N
ew thread
[akhaldi] 63065: [MSTASK_WINETEST] * Improve header inclusions.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:33:05 2014 New Revision: 63065 URL:
http://svn.reactos.org/svn/reactos?rev=63065&view=rev
Log: [MSTASK_WINETEST] * Improve header inclusions. Modified: trunk/rostests/winetests/mstask/testlist.c Modified: trunk/rostests/winetests/mstask/testlist.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/mstask/testlist…
============================================================================== --- trunk/rostests/winetests/mstask/testlist.c [iso-8859-1] (original) +++ trunk/rostests/winetests/mstask/testlist.c [iso-8859-1] Wed Apr 30 12:33:05 2014 @@ -1,10 +1,7 @@ /* Automatically generated file; DO NOT EDIT!! */ -#define WIN32_LEAN_AND_MEAN -#include <windows.h> - #define STANDALONE -#include "wine/test.h" +#include <wine/test.h> extern void func_task(void); extern void func_task_scheduler(void);
10 years, 7 months
1
0
0
0
[akhaldi] 63064: [MSTASK] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:32:16 2014 New Revision: 63064 URL:
http://svn.reactos.org/svn/reactos?rev=63064&view=rev
Log: [MSTASK] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/reactos/dll/win32/mstask/mstask_local.idl trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/mstask/mstask_local.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mstask/mstask_lo…
============================================================================== --- trunk/reactos/dll/win32/mstask/mstask_local.idl [iso-8859-1] (original) +++ trunk/reactos/dll/win32/mstask/mstask_local.idl [iso-8859-1] Wed Apr 30 12:32:16 2014 @@ -16,4 +16,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#pragma makedep ident +#pragma makedep register + #include "mstask.idl" Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Wed Apr 30 12:32:16 2014 @@ -128,7 +128,7 @@ reactos/dll/win32/msrle32 # Synced to Wine-1.7.17 reactos/dll/win32/mssign32 # Synced to Wine-1.7.1 reactos/dll/win32/mssip32 # Synced to Wine-1.7.1 -reactos/dll/win32/mstask # Synced to Wine-1.7.1 +reactos/dll/win32/mstask # Synced to Wine-1.7.17 reactos/dll/win32/msvcrt20 # Out of sync reactos/dll/win32/msvcrt40 # Out of sync reactos/dll/win32/msvfw32 # Synced to Wine-1.7.1
10 years, 7 months
1
0
0
0
[akhaldi] 63063: [MSIMTF] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:29:51 2014 New Revision: 63063 URL:
http://svn.reactos.org/svn/reactos?rev=63063&view=rev
Log: [MSIMTF] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/reactos/dll/win32/msimtf/msimtf.idl trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/msimtf/msimtf.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msimtf/msimtf.id…
============================================================================== --- trunk/reactos/dll/win32/msimtf/msimtf.idl [iso-8859-1] (original) +++ trunk/reactos/dll/win32/msimtf/msimtf.idl [iso-8859-1] Wed Apr 30 12:29:51 2014 @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#pragma makedep register + [ helpstring("CActiveIMMApp"), threading(apartment), Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Wed Apr 30 12:29:51 2014 @@ -121,7 +121,7 @@ reactos/dll/win32/mshtml.tlb # Synced to Wine-1.7.17 reactos/dll/win32/msi # Synced to Wine-1.7.17 reactos/dll/win32/msimg32 # Synced to Wine-1.7.1 -reactos/dll/win32/msimtf # Synced to Wine-1.7.1 +reactos/dll/win32/msimtf # Synced to Wine-1.7.17 reactos/dll/win32/msisip # Synced to Wine-1.7.1 reactos/dll/win32/msisys.ocx # Synced to Wine-1.7.1 reactos/dll/win32/msnet32 # Synced to Wine-1.7.1
10 years, 7 months
1
0
0
0
[akhaldi] 63062: [LZ32_WINETEST] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:24:15 2014 New Revision: 63062 URL:
http://svn.reactos.org/svn/reactos?rev=63062&view=rev
Log: [LZ32_WINETEST] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/rostests/winetests/lz32/CMakeLists.txt trunk/rostests/winetests/lz32/lzexpand_main.c trunk/rostests/winetests/lz32/testlist.c Modified: trunk/rostests/winetests/lz32/CMakeLists.txt URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/lz32/CMakeLists…
============================================================================== --- trunk/rostests/winetests/lz32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/rostests/winetests/lz32/CMakeLists.txt [iso-8859-1] Wed Apr 30 12:24:15 2014 @@ -1,8 +1,6 @@ add_definitions(-DUSE_WINE_TODOS) - add_executable(lz32_winetest lzexpand_main.c testlist.c) -target_link_libraries(lz32_winetest wine) set_module_type(lz32_winetest win32cui) -add_importlibs(lz32_winetest lz32 msvcrt kernel32 ntdll) +add_importlibs(lz32_winetest lz32 msvcrt kernel32) add_cd_file(TARGET lz32_winetest DESTINATION reactos/bin FOR all) Modified: trunk/rostests/winetests/lz32/lzexpand_main.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/lz32/lzexpand_m…
============================================================================== --- trunk/rostests/winetests/lz32/lzexpand_main.c [iso-8859-1] (original) +++ trunk/rostests/winetests/lz32/lzexpand_main.c [iso-8859-1] Wed Apr 30 12:24:15 2014 @@ -83,8 +83,8 @@ if(expect_short) { memcpy(shortname, dst, MAX_PATH); - retval = GetShortPathName(shortname, dst, MAX_PATH-1); - ok(retval > 0, "GetShortPathName returned %d for '%s', GLE=%d\n", + retval = GetShortPathNameA(shortname, dst, MAX_PATH-1); + ok(retval > 0, "GetShortPathNameA returned %d for '%s', GLE=%d\n", retval, dst, GetLastError()); } } Modified: trunk/rostests/winetests/lz32/testlist.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/lz32/testlist.c…
============================================================================== --- trunk/rostests/winetests/lz32/testlist.c [iso-8859-1] (original) +++ trunk/rostests/winetests/lz32/testlist.c [iso-8859-1] Wed Apr 30 12:24:15 2014 @@ -1,10 +1,7 @@ /* Automatically generated file; DO NOT EDIT!! */ -#define WIN32_LEAN_AND_MEAN -#include <windows.h> - #define STANDALONE -#include "wine/test.h" +#include <wine/test.h> extern void func_lzexpand_main(void);
10 years, 7 months
1
0
0
0
[akhaldi] 63061: [LOCALUI_WINETEST] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:23:12 2014 New Revision: 63061 URL:
http://svn.reactos.org/svn/reactos?rev=63061&view=rev
Log: [LOCALUI_WINETEST] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/rostests/winetests/localui/localui.c Modified: trunk/rostests/winetests/localui/localui.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/localui/localui…
============================================================================== --- trunk/rostests/winetests/localui/localui.c [iso-8859-1] (original) +++ trunk/rostests/winetests/localui/localui.c [iso-8859-1] Wed Apr 30 12:23:12 2014 @@ -44,12 +44,12 @@ static BOOL (WINAPI *pConfigurePortUI)(PCWSTR, HWND, PCWSTR); static BOOL (WINAPI *pDeletePortUI)(PCWSTR, HWND, PCWSTR); -static WCHAR does_not_existW[] = {'d','o','e','s','_','n','o','t','_','e','x','i','s','t',0}; -static WCHAR emptyW[] = {0}; -static CHAR fmt_comA[] = {'C','O','M','%','u',':',0}; -static CHAR fmt_lptA[] = {'L','P','T','%','u',':',0}; -static WCHAR localportW[] = {'L','o','c','a','l',' ','P','o','r','t',0}; -static WCHAR portname_fileW[] = {'F','I','L','E',':',0}; +static const WCHAR does_not_existW[] = {'d','o','e','s','_','n','o','t','_','e','x','i','s','t',0}; +static const WCHAR emptyW[] = {0}; +static const CHAR fmt_comA[] = {'C','O','M','%','u',':',0}; +static const CHAR fmt_lptA[] = {'L','P','T','%','u',':',0}; +static const WCHAR localportW[] = {'L','o','c','a','l',' ','P','o','r','t',0}; +static const WCHAR portname_fileW[] = {'F','I','L','E',':',0}; static LPBYTE pi_buffer; static DWORD pi_numports; @@ -64,7 +64,7 @@ /* ########################### */ -static PORT_INFO_2W * find_portinfo2(LPWSTR pPort) +static PORT_INFO_2W * find_portinfo2(LPCWSTR pPort) { PORT_INFO_2W * pi; DWORD res;
10 years, 7 months
1
0
0
0
[akhaldi] 63060: [INSENG] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:20:21 2014 New Revision: 63060 URL:
http://svn.reactos.org/svn/reactos?rev=63060&view=rev
Log: [INSENG] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/reactos/dll/win32/inseng/inseng.idl trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/inseng/inseng.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/inseng/inseng.id…
============================================================================== --- trunk/reactos/dll/win32/inseng/inseng.idl [iso-8859-1] (original) +++ trunk/reactos/dll/win32/inseng/inseng.idl [iso-8859-1] Wed Apr 30 12:20:21 2014 @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#pragma makedep register + [ helpstring("Microsoft Active Setup Engine"), threading(apartment), Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Wed Apr 30 12:20:21 2014 @@ -88,7 +88,7 @@ reactos/dll/win32/inetcomm # Synced to Wine-1.7.17 reactos/dll/win32/inetmib1 # Synced to Wine-1.7.1 reactos/dll/win32/initpki # Synced to Wine-1.7.1 -reactos/dll/win32/inseng # Synced to Wine-1.7.1 +reactos/dll/win32/inseng # Synced to Wine-1.7.17 reactos/dll/win32/iphlpapi # Out of sync reactos/dll/win32/itircl # Synced to Wine-1.7.1 reactos/dll/win32/itss # Synced to Wine-1.7.17
10 years, 7 months
1
0
0
0
[akhaldi] 63059: [IMM32_WINETEST] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:16:47 2014 New Revision: 63059 URL:
http://svn.reactos.org/svn/reactos?rev=63059&view=rev
Log: [IMM32_WINETEST] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/rostests/winetests/imm32/imm32.c Modified: trunk/rostests/winetests/imm32/imm32.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/imm32/imm32.c?r…
============================================================================== --- trunk/rostests/winetests/imm32/imm32.c [iso-8859-1] (original) +++ trunk/rostests/winetests/imm32/imm32.c [iso-8859-1] Wed Apr 30 12:16:47 2014 @@ -102,9 +102,9 @@ static void msg_spy_pump_msg_queue(void) { MSG msg; - while(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { + while(PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); - DispatchMessage(&msg); + DispatchMessageW(&msg); } return; @@ -143,11 +143,11 @@ static void msg_spy_init(HWND hwnd) { msg_spy.hwnd = hwnd; msg_spy.get_msg_hook = - SetWindowsHookEx(WH_GETMESSAGE, get_msg_filter, GetModuleHandle(0), - GetCurrentThreadId()); + SetWindowsHookExW(WH_GETMESSAGE, get_msg_filter, GetModuleHandleW(NULL), + GetCurrentThreadId()); msg_spy.call_wnd_proc_hook = - SetWindowsHookEx(WH_CALLWNDPROC, call_wnd_proc_filter, - GetModuleHandle(0), GetCurrentThreadId()); + SetWindowsHookExW(WH_CALLWNDPROC, call_wnd_proc_filter, + GetModuleHandleW(NULL), GetCurrentThreadId()); msg_spy.i_msg = 0; msg_spy_flush_msgs(); @@ -182,7 +182,7 @@ } static BOOL init(void) { - WNDCLASSEX wc; + WNDCLASSEXA wc; HIMC imc; HMODULE hmod,huser; @@ -192,25 +192,25 @@ pImmIsUIMessageA = (void*)GetProcAddress(hmod, "ImmIsUIMessageA"); pSendInput = (void*)GetProcAddress(huser, "SendInput"); - wc.cbSize = sizeof(WNDCLASSEX); + wc.cbSize = sizeof(WNDCLASSEXA); wc.style = 0; wc.lpfnWndProc = wndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; - wc.hInstance = GetModuleHandle(0); - wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); - wc.hCursor = LoadCursor(NULL, IDC_ARROW); + wc.hInstance = GetModuleHandleA(NULL); + wc.hIcon = LoadIconA(NULL, (LPCSTR)IDI_APPLICATION); + wc.hCursor = LoadCursorA(NULL, (LPCSTR)IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wc.lpszMenuName = NULL; wc.lpszClassName = wndcls; - wc.hIconSm = LoadIcon(NULL, IDI_APPLICATION); + wc.hIconSm = LoadIconA(NULL, (LPCSTR)IDI_APPLICATION); if (!RegisterClassExA(&wc)) return FALSE; - hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, wndcls, "Wine imm32.dll test", - WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, - 240, 120, NULL, NULL, GetModuleHandle(0), NULL); + hwnd = CreateWindowExA(WS_EX_CLIENTEDGE, wndcls, "Wine imm32.dll test", + WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, + 240, 120, NULL, NULL, GetModuleHandleW(NULL), NULL); if (!hwnd) return FALSE; @@ -234,7 +234,7 @@ msg_spy_cleanup(); if (hwnd) DestroyWindow(hwnd); - UnregisterClass(wndcls, GetModuleHandle(0)); + UnregisterClassA(wndcls, GetModuleHandleW(NULL)); } static void test_ImmNotifyIME(void) { @@ -254,14 +254,14 @@ "WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if " "the composition string being canceled is empty.\n"); - ImmSetCompositionString(imc, SCS_SETSTR, string, sizeof(string), NULL, 0); + ImmSetCompositionStringA(imc, SCS_SETSTR, string, sizeof(string), NULL, 0); msg_spy_flush_msgs(); ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0); msg_spy_flush_msgs(); /* behavior differs between win9x and NT */ - ret = ImmGetCompositionString(imc, GCS_COMPSTR, resstr, sizeof(resstr)); + ret = ImmGetCompositionStringA(imc, GCS_COMPSTR, resstr, sizeof(resstr)); ok(!ret, "After being cancelled the composition string is empty.\n"); msg_spy_flush_msgs(); @@ -276,6 +276,26 @@ msg_spy_flush_msgs(); ImmReleaseContext(hwnd, imc); + + imc = ImmCreateContext(); + ImmDestroyContext(imc); + + SetLastError(0xdeadbeef); + ret = ImmNotifyIME((HIMC)0xdeadcafe, NI_COMPOSITIONSTR, CPS_CANCEL, 0); + ok (ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmNotifyIME(0x00000000, NI_COMPOSITIONSTR, CPS_CANCEL, 0); + ok (ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_SUCCESS, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0); + ok (ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + } static void test_ImmGetCompositionString(void) @@ -406,9 +426,9 @@ COMPOSITIONFORM cf; POINT pt; igc_threadinfo *info= (igc_threadinfo*)lpParam; - info->hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, wndcls, "Wine imm32.dll test", - WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, - 240, 120, NULL, NULL, GetModuleHandle(0), NULL); + info->hwnd = CreateWindowExA(WS_EX_CLIENTEDGE, wndcls, "Wine imm32.dll test", + WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, + 240, 120, NULL, NULL, GetModuleHandleW(NULL), NULL); h1 = ImmGetContext(hwnd); todo_wine ok(info->himc == h1, "hwnd context changed in new thread\n"); @@ -417,9 +437,9 @@ info->himc = h2; ImmReleaseContext(hwnd,h1); - hwnd2 = CreateWindowEx(WS_EX_CLIENTEDGE, wndcls, "Wine imm32.dll test", - WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, - 240, 120, NULL, NULL, GetModuleHandle(0), NULL); + hwnd2 = CreateWindowExA(WS_EX_CLIENTEDGE, wndcls, "Wine imm32.dll test", + WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, + 240, 120, NULL, NULL, GetModuleHandleW(NULL), NULL); h1 = ImmGetContext(hwnd2); ok(h1 == h2, "Windows in same thread should have same default context\n"); @@ -443,13 +463,14 @@ HANDLE hThread; DWORD dwThreadId; BOOL rc; - LOGFONT lf; + LOGFONTA lf; COMPOSITIONFORM cf; + CANDIDATEFORM cdf; DWORD status, sentence; POINT pt; himc = ImmGetContext(hwnd); - threadinfo.event = CreateEvent(NULL, TRUE, FALSE, NULL); + threadinfo.event = CreateEventA(NULL, TRUE, FALSE, NULL); threadinfo.himc = himc; hThread = CreateThread(NULL, 0, ImmGetContextThreadFunc, &threadinfo, 0, &dwThreadId ); WaitForSingleObject(threadinfo.event, INFINITE); @@ -489,14 +510,14 @@ ok(rc == 0, "ImmGetOpenStatus failed\n"); /* CompositionFont */ - rc = ImmGetCompositionFont(himc, &lf); + rc = ImmGetCompositionFontA(himc, &lf); ok(rc != 0, "ImmGetCompositionFont failed\n"); - rc = ImmSetCompositionFont(himc, &lf); + rc = ImmSetCompositionFontA(himc, &lf); ok(rc != 0, "ImmSetCompositionFont failed\n"); - rc = ImmGetCompositionFont(otherHimc, &lf); + rc = ImmGetCompositionFontA(otherHimc, &lf); ok(rc != 0 || broken(rc == 0), "ImmGetCompositionFont failed\n"); - rc = ImmSetCompositionFont(otherHimc, &lf); + rc = ImmSetCompositionFontA(otherHimc, &lf); todo_wine ok(rc == 0, "ImmSetCompositionFont should fail\n"); /* CompositionWindow */ @@ -531,6 +552,23 @@ todo_wine ok(rc == 0, "ImmSetStatusWindowPos should fail\n"); rc = ImmGetStatusWindowPos(otherHimc, &pt); ok(rc != 0 || broken(rc == 0), "ImmGetStatusWindowPos failed\n"); + + /* Candidate Window */ + rc = ImmGetCandidateWindow(himc, 0, &cdf); + ok (rc == 0, "ImmGetCandidateWindow should fail\n"); + cdf.dwIndex = 0; + cdf.dwStyle = CFS_CANDIDATEPOS; + cdf.ptCurrentPos.x = 0; + cdf.ptCurrentPos.y = 0; + rc = ImmSetCandidateWindow(himc, &cdf); + ok (rc == 1, "ImmSetCandidateWindow should succeed\n"); + rc = ImmGetCandidateWindow(himc, 0, &cdf); + ok (rc == 1, "ImmGetCandidateWindow should succeed\n"); + + rc = ImmGetCandidateWindow(otherHimc, 0, &cdf); + todo_wine ok (rc == 0, "ImmGetCandidateWindow should fail\n"); + rc = ImmSetCandidateWindow(otherHimc, &cdf); + todo_wine ok (rc == 0, "ImmSetCandidateWindow should fail\n"); ImmReleaseContext(threadinfo.hwnd,otherHimc); ImmReleaseContext(hwnd,himc); @@ -609,18 +647,19 @@ static void test_ImmGetDescription(void) { HKL hkl; - WCHAR japime[] = { 'E', '0', '0', '1', '0', '4', '1', '1', 0 }; WCHAR descW[100]; CHAR descA[100]; UINT ret, lret; /* FIXME: invalid keyboard layouts should not pass */ ret = ImmGetDescriptionW(NULL, NULL, 0); - todo_wine ok(!ret, "ImmGetDescriptionW failed, expected 0 received %d.\n", ret); + ok(!ret, "ImmGetDescriptionW failed, expected 0 received %d.\n", ret); + ret = ImmGetDescriptionA(NULL, NULL, 0); + ok(!ret, "ImmGetDescriptionA failed, expected 0 received %d.\n", ret); /* load a language with valid IMM descriptions */ - hkl = LoadKeyboardLayoutW(japime, KLF_ACTIVATE); - todo_wine ok(hkl != 0, "LoadKeyboardLayoutW failed, expected != 0.\n"); + hkl = GetKeyboardLayout(0); + ok(hkl != 0, "GetKeyboardLayout failed, expected != 0.\n"); ret = ImmGetDescriptionW(hkl, NULL, 0); if(!ret) @@ -628,6 +667,12 @@ win_skip("ImmGetDescriptionW is not working for current loaded keyboard.\n"); return; } + + SetLastError(0xdeadcafe); + ret = ImmGetDescriptionW(0, NULL, 100); + ok (ret == 0, "ImmGetDescriptionW with 0 hkl should return 0\n"); + ret = GetLastError(); + ok (ret == 0xdeadcafe, "Last Error should remain unchanged\n"); ret = ImmGetDescriptionW(hkl, descW, 0); ok(ret, "ImmGetDescriptionW failed, expected != 0 received 0.\n"); @@ -638,13 +683,16 @@ lret = ImmGetDescriptionA(hkl, descA, ret + 1); ok(lret, "ImmGetDescriptionA failed, expected != 0 received 0.\n"); - todo_wine ok(lret == ret, "ImmGetDescriptionA failed to return the correct amount of data. Expected %d, got %d.\n", ret, lret); + ok(lret == ret, "ImmGetDescriptionA failed to return the correct amount of data. Expected %d, got %d.\n", ret, lret); ret /= 2; /* try to copy partially */ lret = ImmGetDescriptionW(hkl, descW, ret + 1); ok(lret, "ImmGetDescriptionW failed, expected != 0 received 0.\n"); ok(lret == ret, "ImmGetDescriptionW failed to return the correct amount of data. Expected %d, got %d.\n", ret, lret); + lret = ImmGetDescriptionA(hkl, descA, ret + 1); + ok(!lret, "ImmGetDescriptionA should fail\n"); + ret = ImmGetDescriptionW(hkl, descW, 1); ok(!ret, "ImmGetDescriptionW failed, expected 0 received %d.\n", ret); @@ -657,9 +705,9 @@ HWND def1, def3; HWND hwnd; - hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "Wine imm32.dll test", - WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, - 240, 120, NULL, NULL, GetModuleHandle(0), NULL); + hwnd = CreateWindowExA(WS_EX_CLIENTEDGE, "EDIT", "Wine imm32.dll test", + WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, + 240, 120, NULL, NULL, GetModuleHandleW(NULL), NULL); ShowWindow(hwnd, SW_SHOWNORMAL); @@ -693,6 +741,23 @@ HIMC imc; DWORD count, ret, i; INPUTCONTEXT *ic; + + imc = ImmCreateContext(); + ImmDestroyContext(imc); + SetLastError(0xdeadbeef); + count = ImmGetIMCLockCount((HIMC)0xdeadcafe); + ok(count == 0, "Invalid IMC should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + count = ImmGetIMCLockCount(0x00000000); + ok(count == 0, "NULL IMC should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "Last Error should remain unchangedi %08x\n",ret); + count = ImmGetIMCLockCount(imc); + ok(count == 0, "Destroyed IMC should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); imc = ImmCreateContext(); count = ImmGetIMCLockCount(imc); @@ -732,7 +797,8 @@ static void test_ImmGetIMCCLockCount(void) { HIMCC imcc; - DWORD count, g_count, ret, i; + DWORD count, g_count, i; + BOOL ret; VOID *p; imcc = ImmCreateIMCC(sizeof(CANDIDATEINFO)); @@ -790,16 +856,16 @@ ret = ImmDestroyContext(imc); ok(ret == TRUE, "Destroy a locked IMC should success!\n"); ic = ImmLockIMC(imc); - todo_wine ok(ic == NULL, "Lock a destroyed IMC should fail!\n"); + ok(ic == NULL, "Lock a destroyed IMC should fail!\n"); ret = ImmUnlockIMC(imc); - todo_wine ok(ret == FALSE, "Unlock a destroyed IMC should fail!\n"); + ok(ret == FALSE, "Unlock a destroyed IMC should fail!\n"); count = ImmGetIMCLockCount(imc); - todo_wine ok(count == 0, "Get lock count of a destroyed IMC should return 0!\n"); + ok(count == 0, "Get lock count of a destroyed IMC should return 0!\n"); SetLastError(0xdeadbeef); ret = ImmDestroyContext(imc); - todo_wine ok(ret == FALSE, "Destroy a destroyed IMC should fail!\n"); - ret = GetLastError(); - todo_wine ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + ok(ret == FALSE, "Destroy a destroyed IMC should fail!\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); } static void test_ImmDestroyIMCC(void) @@ -842,9 +908,9 @@ HIMC imc; UINT idx = 0; - HWND hwnd = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "Wine imm32.dll test", - WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, - 240, 120, NULL, NULL, GetModuleHandle(0), NULL); + HWND hwnd = CreateWindowExA(WS_EX_CLIENTEDGE, "EDIT", "Wine imm32.dll test", + WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, + 240, 120, NULL, NULL, GetModuleHandleA(NULL), NULL); ShowWindow(hwnd, SW_SHOWNORMAL); defwnd = ImmGetDefaultIMEWnd(hwnd); @@ -852,7 +918,7 @@ ImmSetOpenStatus(imc, TRUE); msg_spy_flush_msgs(); - SendMessage(defwnd, WM_IME_CONTROL, IMC_GETCANDIDATEPOS, (LPARAM)&cf ); + SendMessageA(defwnd, WM_IME_CONTROL, IMC_GETCANDIDATEPOS, (LPARAM)&cf ); do { msg = msg_spy_find_next_msg(WM_IME_CONTROL,&idx); @@ -887,8 +953,8 @@ wclass.style = CS_HREDRAW | CS_VREDRAW; wclass.lpfnWndProc = processkey_wnd_proc; wclass.hInstance = hInstance; - wclass.hIcon = LoadIcon(0, IDI_APPLICATION); - wclass.hCursor = LoadCursor( NULL, IDC_ARROW); + wclass.hIcon = LoadIconW(0, (LPCWSTR)IDI_APPLICATION); + wclass.hCursor = LoadCursorW( NULL, (LPCWSTR)IDC_ARROW); wclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wclass.lpszMenuName = 0; wclass.cbClsExtra = 0; @@ -978,6 +1044,363 @@ ImmReleaseContext(hWndTest, imc); ImmSetOpenStatus(imc, FALSE); DestroyWindow(hWndTest); +} + +static void test_InvalidIMC(void) +{ + HIMC imc_destroy; + HIMC imc_null = 0x00000000; + HIMC imc_bad = (HIMC)0xdeadcafe; + + HIMC imc1, imc2, oldimc; + DWORD ret; + DWORD count; + CHAR buffer[1000]; + INPUTCONTEXT *ic; + LOGFONTA lf; + + memset(&lf, 0, sizeof(lf)); + + imc_destroy = ImmCreateContext(); + ret = ImmDestroyContext(imc_destroy); + ok(ret == TRUE, "Destroy an IMC should success!\n"); + + /* Test associating destroyed imc */ + imc1 = ImmGetContext(hwnd); + SetLastError(0xdeadbeef); + oldimc = ImmAssociateContext(hwnd, imc_destroy); + ok(!oldimc, "Associating to a destroyed imc should fail!\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + imc2 = ImmGetContext(hwnd); + ok(imc1 == imc2, "imc should not changed! imc1 %p, imc2 %p\n", imc1, imc2); + + /* Test associating NULL imc, which is different from an invalid imc */ + oldimc = ImmAssociateContext(hwnd, imc_null); + ok(oldimc != NULL, "Associating to NULL imc should success!\n"); + imc2 = ImmGetContext(hwnd); + ok(!imc2, "expect NULL, returned %p\n", imc2); + oldimc = ImmAssociateContext(hwnd, imc1); + ok(!oldimc, "expect NULL, returned %p\n", oldimc); + imc2 = ImmGetContext(hwnd); + ok(imc2 == imc1, "imc should not changed! imc2 %p, imc1 %p\n", imc2, imc1); + + /* Test associating invalid imc */ + imc1 = ImmGetContext(hwnd); + SetLastError(0xdeadbeef); + oldimc = ImmAssociateContext(hwnd, imc_bad); + ok(!oldimc, "Associating to a destroyed imc should fail!\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + imc2 = ImmGetContext(hwnd); + ok(imc1 == imc2, "imc should not changed! imc1 %p, imc2 %p\n", imc1, imc2); + + + /* Test ImmGetCandidateListA */ + SetLastError(0xdeadbeef); + ret = ImmGetCandidateListA(imc_bad, 0, NULL, 0); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCandidateListA(imc_null, 0, NULL, 0); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCandidateListA(imc_destroy, 0, NULL, 0); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetCandidateListCountA*/ + SetLastError(0xdeadbeef); + ret = ImmGetCandidateListCountA(imc_bad,&count); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCandidateListCountA(imc_null,&count); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCandidateListCountA(imc_destroy,&count); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetCandidateWindow */ + SetLastError(0xdeadbeef); + ret = ImmGetCandidateWindow(imc_bad, 0, (LPCANDIDATEFORM)buffer); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCandidateWindow(imc_null, 0, (LPCANDIDATEFORM)buffer); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCandidateWindow(imc_destroy, 0, (LPCANDIDATEFORM)buffer); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetCompositionFontA */ + SetLastError(0xdeadbeef); + ret = ImmGetCompositionFontA(imc_bad, (LPLOGFONTA)buffer); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCompositionFontA(imc_null, (LPLOGFONTA)buffer); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCompositionFontA(imc_destroy, (LPLOGFONTA)buffer); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetCompositionWindow */ + SetLastError(0xdeadbeef); + ret = ImmGetCompositionWindow(imc_bad, (LPCOMPOSITIONFORM)buffer); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCompositionWindow(imc_null, (LPCOMPOSITIONFORM)buffer); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCompositionWindow(imc_destroy, (LPCOMPOSITIONFORM)buffer); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetCompositionStringA */ + SetLastError(0xdeadbeef); + ret = ImmGetCompositionStringA(imc_bad, GCS_COMPSTR, NULL, 0); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCompositionStringA(imc_null, GCS_COMPSTR, NULL, 0); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetCompositionStringA(imc_destroy, GCS_COMPSTR, NULL, 0); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmSetOpenStatus */ + SetLastError(0xdeadbeef); + ret = ImmSetOpenStatus(imc_bad, 1); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetOpenStatus(imc_null, 1); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetOpenStatus(imc_destroy, 1); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetOpenStatus */ + SetLastError(0xdeadbeef); + ret = ImmGetOpenStatus(imc_bad); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetOpenStatus(imc_null); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetOpenStatus(imc_destroy); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetStatusWindowPos */ + SetLastError(0xdeadbeef); + ret = ImmGetStatusWindowPos(imc_bad, NULL); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetStatusWindowPos(imc_null, NULL); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetStatusWindowPos(imc_destroy, NULL); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmRequestMessageA */ + SetLastError(0xdeadbeef); + ret = ImmRequestMessageA(imc_bad, WM_CHAR, 0); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmRequestMessageA(imc_null, WM_CHAR, 0); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmRequestMessageA(imc_destroy, WM_CHAR, 0); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmSetCompositionFontA */ + SetLastError(0xdeadbeef); + ret = ImmSetCompositionFontA(imc_bad, &lf); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetCompositionFontA(imc_null, &lf); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetCompositionFontA(imc_destroy, &lf); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmSetCompositionWindow */ + SetLastError(0xdeadbeef); + ret = ImmSetCompositionWindow(imc_bad, NULL); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetCompositionWindow(imc_null, NULL); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetCompositionWindow(imc_destroy, NULL); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmSetConversionStatus */ + SetLastError(0xdeadbeef); + ret = ImmSetConversionStatus(imc_bad, 0, 0); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetConversionStatus(imc_null, 0, 0); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetConversionStatus(imc_destroy, 0, 0); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmSetStatusWindowPos */ + SetLastError(0xdeadbeef); + ret = ImmSetStatusWindowPos(imc_bad, 0); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetStatusWindowPos(imc_null, 0); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmSetStatusWindowPos(imc_destroy, 0); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGetImeMenuItemsA */ + SetLastError(0xdeadbeef); + ret = ImmGetImeMenuItemsA(imc_bad, 0, 0, NULL, NULL, 0); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetImeMenuItemsA(imc_null, 0, 0, NULL, NULL, 0); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGetImeMenuItemsA(imc_destroy, 0, 0, NULL, NULL, 0); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmLockIMC */ + SetLastError(0xdeadbeef); + ic = ImmLockIMC(imc_bad); + ok(ic == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ic = ImmLockIMC(imc_null); + ok(ic == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ic = ImmLockIMC(imc_destroy); + ok(ic == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmUnlockIMC */ + SetLastError(0xdeadbeef); + ret = ImmUnlockIMC(imc_bad); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmUnlockIMC(imc_null); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == 0xdeadbeef, "last error should remain unchanged %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmUnlockIMC(imc_destroy); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + + /* Test ImmGenerateMessage */ + SetLastError(0xdeadbeef); + ret = ImmGenerateMessage(imc_bad); + ok(ret == 0, "Bad IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGenerateMessage(imc_null); + ok(ret == 0, "NULL IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); + SetLastError(0xdeadbeef); + ret = ImmGenerateMessage(imc_destroy); + ok(ret == 0, "Destroyed IME should return 0\n"); + ret = GetLastError(); + ok(ret == ERROR_INVALID_HANDLE, "wrong last error %08x!\n", ret); } START_TEST(imm32) { @@ -997,6 +1420,7 @@ test_ImmGetIMCCLockCount(); test_ImmDestroyContext(); test_ImmDestroyIMCC(); + test_InvalidIMC(); msg_spy_cleanup(); /* Reinitialize the hooks to capture all windows */ msg_spy_init(NULL);
10 years, 7 months
1
0
0
0
[akhaldi] 63058: [HNETCFG] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:13:25 2014 New Revision: 63058 URL:
http://svn.reactos.org/svn/reactos?rev=63058&view=rev
Log: [HNETCFG] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/reactos/dll/win32/hnetcfg/hnetcfg.idl trunk/reactos/dll/win32/hnetcfg/hnetcfg_tlb.idl trunk/reactos/media/doc/README.WINE Modified: trunk/reactos/dll/win32/hnetcfg/hnetcfg.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/hnetcfg/hnetcfg.…
============================================================================== --- trunk/reactos/dll/win32/hnetcfg/hnetcfg.idl [iso-8859-1] (original) +++ trunk/reactos/dll/win32/hnetcfg/hnetcfg.idl [iso-8859-1] Wed Apr 30 12:13:25 2014 @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#pragma makedep register + [ helpstring("HNetCfg.FwMgr"), progid("HNetCfg.FwMgr"), Modified: trunk/reactos/dll/win32/hnetcfg/hnetcfg_tlb.idl URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/hnetcfg/hnetcfg_…
============================================================================== --- trunk/reactos/dll/win32/hnetcfg/hnetcfg_tlb.idl [iso-8859-1] (original) +++ trunk/reactos/dll/win32/hnetcfg/hnetcfg_tlb.idl [iso-8859-1] Wed Apr 30 12:13:25 2014 @@ -18,4 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#pragma makedep regtypelib + #include "netfw.idl" Modified: trunk/reactos/media/doc/README.WINE URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Wed Apr 30 12:13:25 2014 @@ -77,7 +77,7 @@ reactos/dll/win32/gdiplus # Synced to Wine-1.7.17 reactos/dll/win32/hhctrl.ocx # Synced to Wine-1.7.17 reactos/dll/win32/hlink # Synced to Wine-1.7.17 -reactos/dll/win32/hnetcfg # Synced to Wine-1.7.1 +reactos/dll/win32/hnetcfg # Synced to Wine-1.7.17 reactos/dll/win32/httpapi # Synced to Wine-1.7.1 reactos/dll/win32/iccvid # Synced to Wine-1.7.1 reactos/dll/win32/icmp # Out of sync
10 years, 7 months
1
0
0
0
[akhaldi] 63057: [FUSION_WINETEST] * Sync with Wine 1.7.17. CORE-8080
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:10:17 2014 New Revision: 63057 URL:
http://svn.reactos.org/svn/reactos?rev=63057&view=rev
Log: [FUSION_WINETEST] * Sync with Wine 1.7.17. CORE-8080 Modified: trunk/rostests/winetests/fusion/asmcache.c Modified: trunk/rostests/winetests/fusion/asmcache.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/fusion/asmcache…
============================================================================== --- trunk/rostests/winetests/fusion/asmcache.c [iso-8859-1] (original) +++ trunk/rostests/winetests/fusion/asmcache.c [iso-8859-1] Wed Apr 30 12:10:17 2014 @@ -952,7 +952,7 @@ GetWindowsDirectoryA(dllpath, MAX_PATH); strcat(dllpath, "\\assembly\\GAC_MSIL\\wine\\\\1.0.0.0__2d03617b1c31e2f5\\wine.dll"); - attr = GetFileAttributes(dllpath); + attr = GetFileAttributesA(dllpath); ok(attr != INVALID_FILE_ATTRIBUTES, "Expected assembly to exist\n"); /* uninstall the assembly from the GAC */ @@ -962,7 +962,7 @@ ok(disp == IASSEMBLYCACHE_UNINSTALL_DISPOSITION_UNINSTALLED, "Expected IASSEMBLYCACHE_UNINSTALL_DISPOSITION_UNINSTALLED, got %d\n", disp); - attr = GetFileAttributes(dllpath); + attr = GetFileAttributesA(dllpath); ok(attr == INVALID_FILE_ATTRIBUTES, "Expected assembly not to exist\n"); disp = 0xf00dbad;
10 years, 7 months
1
0
0
0
[akhaldi] 63056: [FAULTREP_WINETEST] * Remove redundant definition.
by akhaldi@svn.reactos.org
Author: akhaldi Date: Wed Apr 30 12:08:33 2014 New Revision: 63056 URL:
http://svn.reactos.org/svn/reactos?rev=63056&view=rev
Log: [FAULTREP_WINETEST] * Remove redundant definition. Modified: trunk/rostests/winetests/faultrep/faultrep.c Modified: trunk/rostests/winetests/faultrep/faultrep.c URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/faultrep/faultr…
============================================================================== --- trunk/rostests/winetests/faultrep/faultrep.c [iso-8859-1] (original) +++ trunk/rostests/winetests/faultrep/faultrep.c [iso-8859-1] Wed Apr 30 12:08:33 2014 @@ -30,8 +30,71 @@ #include "errorrep.h" #include "wine/test.h" -static char regpath_root[] = "Software\\Microsoft\\PCHealth\\ErrorReporting"; -static char regpath_exclude[] = "ExclusionList"; +static const char regpath_root[] = "Software\\Microsoft\\PCHealth\\ErrorReporting"; +static const char regpath_exclude[] = "ExclusionList"; + + +static BOOL is_process_limited(void) +{ + static BOOL (WINAPI *pCheckTokenMembership)(HANDLE,PSID,PBOOL) = NULL; + static BOOL (WINAPI *pOpenProcessToken)(HANDLE, DWORD, PHANDLE) = NULL; + SID_IDENTIFIER_AUTHORITY NtAuthority = {SECURITY_NT_AUTHORITY}; + PSID Group; + BOOL IsInGroup; + HANDLE token; + + if (!pOpenProcessToken) + { + HMODULE hadvapi32 = GetModuleHandleA("advapi32.dll"); + pOpenProcessToken = (void*)GetProcAddress(hadvapi32, "OpenProcessToken"); + pCheckTokenMembership = (void*)GetProcAddress(hadvapi32, "CheckTokenMembership"); + if (!pCheckTokenMembership || !pOpenProcessToken) + { + /* Win9x (power to the masses) or NT4 (no way to know) */ + trace("missing pOpenProcessToken or CheckTokenMembership\n"); + return FALSE; + } + } + + if (!AllocateAndInitializeSid(&NtAuthority, 2, SECURITY_BUILTIN_DOMAIN_RID, + DOMAIN_ALIAS_RID_ADMINS, + 0, 0, 0, 0, 0, 0, &Group) || + !pCheckTokenMembership(NULL, Group, &IsInGroup)) + { + trace("Could not check if the current user is an administrator\n"); + return FALSE; + } + if (!IsInGroup) + { + if (!AllocateAndInitializeSid(&NtAuthority, 2, + SECURITY_BUILTIN_DOMAIN_RID, + DOMAIN_ALIAS_RID_POWER_USERS, + 0, 0, 0, 0, 0, 0, &Group) || + !pCheckTokenMembership(NULL, Group, &IsInGroup)) + { + trace("Could not check if the current user is a power user\n"); + return FALSE; + } + if (!IsInGroup) + { + /* Only administrators and power users can be powerful */ + return TRUE; + } + } + + if (pOpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &token)) + { + BOOL ret; + TOKEN_ELEVATION_TYPE type = TokenElevationTypeDefault; + DWORD size; + + ret = GetTokenInformation(token, TokenElevationType, &type, sizeof(type), &size); + CloseHandle(token); + return (ret && type == TokenElevationTypeLimited); + } + return FALSE; +} + /* ###### */ @@ -68,12 +131,20 @@ SetLastError(0xdeadbeef); /* existence of the path doesn't matter this function succeeded */ res = AddERExcludedApplicationA("winetest_faultrep.exe"); - ok(res, "got %d and 0x%x (expected TRUE)\n", res, GetLastError()); + if (is_process_limited()) + { + /* LastError is not set! */ + ok(!res, "AddERExcludedApplicationA should have failed got %d\n", res); + } + else + { + ok(res, "AddERExcludedApplicationA failed (le=0x%x)\n", GetLastError()); - /* add, when already present */ - SetLastError(0xdeadbeef); - res = AddERExcludedApplicationA("winetest_faultrep.exe"); - ok(res, "got %d and 0x%x (expected TRUE)\n", res, GetLastError()); + /* add, when already present */ + SetLastError(0xdeadbeef); + res = AddERExcludedApplicationA("winetest_faultrep.exe"); + ok(res, "AddERExcludedApplicationA failed (le=0x%x)\n", GetLastError()); + } /* cleanup */ RegDeleteValueA(hexclude, "winetest_faultrep.exe");
10 years, 7 months
1
0
0
0
← Newer
1
2
3
4
5
6
...
50
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
Results per page:
10
25
50
100
200