winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
August 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1085 discussions
Start a n
N
ew thread
Kirill K. Smirnov : wineconsole: Implement GetConsoleWindow.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: f3e13174c70f1887d92ba9f8774eb37e17eda1ee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f3e13174c70f1887d92ba9f87…
Author: Kirill K. Smirnov <lich(a)math.spbu.ru> Date: Thu Aug 23 19:17:17 2007 +0400 wineconsole: Implement GetConsoleWindow. --- dlls/kernel32/console.c | 12 +++++++++- include/wine/server_protocol.h | 35 +++++++++++++++++-------------- programs/wineconsole/wineconsole.c | 22 +++++++++++--------- server/console.c | 7 ++++++ server/protocol.def | 39 +++++++++++++++++++---------------- server/trace.c | 2 + 6 files changed, 71 insertions(+), 46 deletions(-) diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index 8da9f8c..32d0214 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -125,8 +125,16 @@ static void char_info_AtoW( CHAR_INFO *buffer, int count ) */ HWND WINAPI GetConsoleWindow(VOID) { - FIXME("stub\n"); - return NULL; + HWND hWnd = NULL; + + SERVER_START_REQ(get_console_input_info) + { + req->handle = 0; + if (!wine_server_call_err(req)) hWnd = reply->win; + } + SERVER_END_REQ; + + return hWnd; } diff --git a/include/wine/server_protocol.h b/include/wine/server_protocol.h index 9c4bdb3..e0f7f8b 100644 --- a/include/wine/server_protocol.h +++ b/include/wine/server_protocol.h @@ -1359,14 +1359,15 @@ struct set_console_mode_reply struct set_console_input_info_request { struct request_header __header; - obj_handle_t handle; - int mask; - obj_handle_t active_sb; - int history_mode; - int history_size; - int edition_mode; - int input_cp; - int output_cp; + obj_handle_t handle; + int mask; + obj_handle_t active_sb; + int history_mode; + int history_size; + int edition_mode; + int input_cp; + int output_cp; + user_handle_t win; /* VARARG(title,unicode_str); */ }; struct set_console_input_info_reply @@ -1380,23 +1381,25 @@ struct set_console_input_info_reply #define SET_CONSOLE_INPUT_INFO_EDITION_MODE 0x10 #define SET_CONSOLE_INPUT_INFO_INPUT_CODEPAGE 0x20 #define SET_CONSOLE_INPUT_INFO_OUTPUT_CODEPAGE 0x40 +#define SET_CONSOLE_INPUT_INFO_WIN 0x80 struct get_console_input_info_request { struct request_header __header; - obj_handle_t handle; + obj_handle_t handle; }; struct get_console_input_info_reply { struct reply_header __header; - int history_mode; - int history_size; - int history_index; - int edition_mode; - int input_cp; - int output_cp; + int history_mode; + int history_size; + int history_index; + int edition_mode; + int input_cp; + int output_cp; + user_handle_t win; /* VARARG(title,unicode_str); */ }; @@ -4727,6 +4730,6 @@ union generic_reply struct make_process_system_reply make_process_system_reply; }; -#define SERVER_PROTOCOL_VERSION 307 +#define SERVER_PROTOCOL_VERSION 309 #endif /* __WINE_WINE_SERVER_PROTOCOL_H */ diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c index b965465..449cb64 100644 --- a/programs/wineconsole/wineconsole.c +++ b/programs/wineconsole/wineconsole.c @@ -642,16 +642,6 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna if (!ret) goto error; WINE_TRACE("using hConIn %p, hSynchro event %p\n", data->hConIn, data->hSynchro); - SERVER_START_REQ( set_console_input_info ) - { - req->handle = data->hConIn; - req->mask = SET_CONSOLE_INPUT_INFO_TITLE; - wine_server_add_data( req, appname, lstrlenW(appname) * sizeof(WCHAR) ); - ret = !wine_server_call_err( req ); - } - SERVER_END_REQ; - if (!ret) goto error; - SERVER_START_REQ(create_console_output) { req->handle_in = data->hConIn; @@ -679,6 +669,18 @@ static struct inner_data* WINECON_Init(HINSTANCE hInst, DWORD pid, LPCWSTR appna WINECON_SetConfig(data, &cfg); data->curcfg.registry = cfg.registry; WINECON_DumpConfig("fint", &data->curcfg); + SERVER_START_REQ( set_console_input_info ) + { + req->handle = data->hConIn; + req->win = data->hWnd; + req->mask = SET_CONSOLE_INPUT_INFO_TITLE | + SET_CONSOLE_INPUT_INFO_WIN; + wine_server_add_data( req, appname, lstrlenW(appname) * sizeof(WCHAR) ); + ret = !wine_server_call_err( req ); + } + SERVER_END_REQ; + if (!ret) goto error; + return data; case init_failed: break; diff --git a/server/console.c b/server/console.c index 88a24e8..b0a3424 100644 --- a/server/console.c +++ b/server/console.c @@ -63,6 +63,7 @@ struct console_input int edition_mode; /* index to edition mode flavors */ int input_cp; /* console input codepage */ int output_cp; /* console output codepage */ + user_handle_t win; /* window handle if backend supports it */ struct event *event; /* event to wait on for input queue */ }; @@ -281,6 +282,7 @@ static struct object *create_console_input( struct thread* renderer ) console_input->edition_mode = 0; console_input->input_cp = 0; console_input->output_cp = 0; + console_input->win = 0; console_input->event = create_event( NULL, NULL, 0, 1, 0 ); if (!console_input->history || !console_input->evt) @@ -719,6 +721,10 @@ static int set_console_input_info( const struct set_console_input_info_request * { console->output_cp = req->output_cp; } + if (req->mask & SET_CONSOLE_INPUT_INFO_WIN) + { + console->win = req->win; + } release_object( console ); return 1; error: @@ -1413,6 +1419,7 @@ DECL_HANDLER(get_console_input_info) reply->edition_mode = console->edition_mode; reply->input_cp = console->input_cp; reply->output_cp = console->output_cp; + reply->win = console->win; release_object( console ); } diff --git a/server/protocol.def b/server/protocol.def index e35c32a..6e13cb2 100644 --- a/server/protocol.def +++ b/server/protocol.def @@ -1090,15 +1090,16 @@ struct console_renderer_event /* Set info about a console (input only) */ @REQ(set_console_input_info) - obj_handle_t handle; /* handle to console input, or 0 for process' console */ - int mask; /* setting mask (see below) */ - obj_handle_t active_sb; /* active screen buffer */ - int history_mode; /* whether we duplicate lines in history */ - int history_size; /* number of lines in history */ - int edition_mode; /* index to the edition mode flavors */ - int input_cp; /* console input codepage */ - int output_cp; /* console output codepage */ - VARARG(title,unicode_str); /* console title */ + obj_handle_t handle; /* handle to console input, or 0 for process' console */ + int mask; /* setting mask (see below) */ + obj_handle_t active_sb; /* active screen buffer */ + int history_mode; /* whether we duplicate lines in history */ + int history_size; /* number of lines in history */ + int edition_mode; /* index to the edition mode flavors */ + int input_cp; /* console input codepage */ + int output_cp; /* console output codepage */ + user_handle_t win; /* console window if backend supports it */ + VARARG(title,unicode_str); /* console title */ @END #define SET_CONSOLE_INPUT_INFO_ACTIVE_SB 0x01 #define SET_CONSOLE_INPUT_INFO_TITLE 0x02 @@ -1107,19 +1108,21 @@ struct console_renderer_event #define SET_CONSOLE_INPUT_INFO_EDITION_MODE 0x10 #define SET_CONSOLE_INPUT_INFO_INPUT_CODEPAGE 0x20 #define SET_CONSOLE_INPUT_INFO_OUTPUT_CODEPAGE 0x40 +#define SET_CONSOLE_INPUT_INFO_WIN 0x80 /* Get info about a console (input only) */ @REQ(get_console_input_info) - obj_handle_t handle; /* handle to console input, or 0 for process' console */ -@REPLY - int history_mode; /* whether we duplicate lines in history */ - int history_size; /* number of lines in history */ - int history_index; /* number of used lines in history */ - int edition_mode; /* index to the edition mode flavors */ - int input_cp; /* console input codepage */ - int output_cp; /* console output codepage */ - VARARG(title,unicode_str); /* console title */ + obj_handle_t handle; /* handle to console input, or 0 for process' console */ +@REPLY + int history_mode; /* whether we duplicate lines in history */ + int history_size; /* number of lines in history */ + int history_index; /* number of used lines in history */ + int edition_mode; /* index to the edition mode flavors */ + int input_cp; /* console input codepage */ + int output_cp; /* console output codepage */ + user_handle_t win; /* console window if backend supports it */ + VARARG(title,unicode_str); /* console title */ @END diff --git a/server/trace.c b/server/trace.c index e6f8847..d0c4e0e 100644 --- a/server/trace.c +++ b/server/trace.c @@ -1473,6 +1473,7 @@ static void dump_set_console_input_info_request( const struct set_console_input_ fprintf( stderr, " edition_mode=%d,", req->edition_mode ); fprintf( stderr, " input_cp=%d,", req->input_cp ); fprintf( stderr, " output_cp=%d,", req->output_cp ); + fprintf( stderr, " win=%p,", req->win ); fprintf( stderr, " title=" ); dump_varargs_unicode_str( cur_size ); } @@ -1490,6 +1491,7 @@ static void dump_get_console_input_info_reply( const struct get_console_input_in fprintf( stderr, " edition_mode=%d,", req->edition_mode ); fprintf( stderr, " input_cp=%d,", req->input_cp ); fprintf( stderr, " output_cp=%d,", req->output_cp ); + fprintf( stderr, " win=%p,", req->win ); fprintf( stderr, " title=" ); dump_varargs_unicode_str( cur_size ); }
1
0
0
0
Kirill K. Smirnov : wineconsole: Move window handle to inner_data structure .
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: 945f4a794660e6da59c3078b8fc49fa0a66f1dd6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=945f4a794660e6da59c3078b8…
Author: Kirill K. Smirnov <lich(a)math.spbu.ru> Date: Thu Aug 23 19:14:58 2007 +0400 wineconsole: Move window handle to inner_data structure. --- programs/wineconsole/curses.c | 1 + programs/wineconsole/dialog.c | 8 +- programs/wineconsole/user.c | 104 ++++++++++++++++---------------- programs/wineconsole/winecon_private.h | 1 + programs/wineconsole/winecon_user.h | 1 - 5 files changed, 58 insertions(+), 57 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=945f4a794660e6da59c30…
1
0
0
0
James Hawkins : cabinet: Return the value of GetLastError if FDICopy fails.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: 2918a272e3b4da3faa1e5b8fd84a83f84e1764b4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2918a272e3b4da3faa1e5b8fd…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Aug 23 15:46:52 2007 -0700 cabinet: Return the value of GetLastError if FDICopy fails. --- dlls/cabinet/cabinet_main.c | 2 +- dlls/cabinet/fdi.c | 1 - dlls/cabinet/tests/extract.c | 11 ++++------- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/dlls/cabinet/cabinet_main.c b/dlls/cabinet/cabinet_main.c index 24be376..50ef06e 100644 --- a/dlls/cabinet/cabinet_main.c +++ b/dlls/cabinet/cabinet_main.c @@ -357,7 +357,7 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName) if (!FDICopy(hfdi, name, path, 0, fdi_notify_extract, NULL, dest)) - res = E_FAIL; + res = HRESULT_FROM_WIN32(GetLastError()); HeapFree(GetProcessHeap(), 0, str); end: diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index ef00447..eea6218 100644 --- a/dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -2495,7 +2495,6 @@ BOOL __cdecl FDICopy( cabhf = PFDI_OPEN(hfdi, fullpath, _O_RDONLY|_O_BINARY, _S_IREAD | _S_IWRITE); if (cabhf == -1) { PFDI_INT(hfdi)->perf->erfOper = FDIERROR_CABINET_NOT_FOUND; - PFDI_INT(hfdi)->perf->erfType = ERROR_FILE_NOT_FOUND; PFDI_INT(hfdi)->perf->fError = TRUE; SetLastError(ERROR_FILE_NOT_FOUND); return FALSE; diff --git a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c index 6fb5ad5..8cadfe2 100644 --- a/dlls/cabinet/tests/extract.c +++ b/dlls/cabinet/tests/extract.c @@ -572,13 +572,10 @@ static void test_Extract(void) session.Operation = EXTRACT_FILLFILELIST | EXTRACT_EXTRACTFILES; res = pExtract(&session, "nonexistent.cab"); node = session.FileList; - todo_wine - { - ok(res == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), - "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %08x\n", res); - ok(session.Error.erfOper == FDIERROR_CABINET_NOT_FOUND, - "Expected FDIERROR_CABINET_NOT_FOUND, got %d\n", session.Error.erfOper); - } + ok(res == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), + "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %08x\n", res); + ok(session.Error.erfOper == FDIERROR_CABINET_NOT_FOUND, + "Expected FDIERROR_CABINET_NOT_FOUND, got %d\n", session.Error.erfOper); ok(session.FileSize == 0, "Expected 0, got %d\n", session.FileSize); ok(session.Error.erfType == 0, "Expected 0, got %d\n", session.Error.erfType); ok(session.Error.fError == TRUE, "Expected TRUE, got %d\n", session.Error.fError);
1
0
0
0
James Hawkins : cabinet: Append new file nodes to the front of the file list.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: b1bd9208185813b3291e64032e8f5e23d8541566 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b1bd9208185813b3291e64032…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Aug 23 14:42:27 2007 -0700 cabinet: Append new file nodes to the front of the file list. --- dlls/cabinet/cabinet_main.c | 34 +++++--- dlls/cabinet/tests/extract.c | 186 +++++++++++++++++++----------------------- 2 files changed, 106 insertions(+), 114 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b1bd9208185813b3291e6…
1
0
0
0
James Hawkins : cabinet: Pass the session Error to FDICopy.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: 80e149d62c55a0dda782fdb63806f3ff1d138488 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=80e149d62c55a0dda782fdb63…
Author: James Hawkins <truiken(a)gmail.com> Date: Thu Aug 23 14:20:52 2007 -0700 cabinet: Pass the session Error to FDICopy. --- dlls/cabinet/cabinet_main.c | 3 +-- dlls/cabinet/tests/extract.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/cabinet/cabinet_main.c b/dlls/cabinet/cabinet_main.c index 8b3c621..aa46cf0 100644 --- a/dlls/cabinet/cabinet_main.c +++ b/dlls/cabinet/cabinet_main.c @@ -306,7 +306,6 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName) { HRESULT res = S_OK; HFDI hfdi; - ERF erf; char *str, *path, *name; TRACE("(%p, %s)\n", dest, szCabName); @@ -319,7 +318,7 @@ HRESULT WINAPI Extract(SESSION *dest, LPCSTR szCabName) fdi_close, fdi_seek, cpuUNKNOWN, - &erf); + &dest->Error); if (!hfdi) return E_FAIL; diff --git a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c index ad93fb8..b9df804 100644 --- a/dlls/cabinet/tests/extract.c +++ b/dlls/cabinet/tests/extract.c @@ -597,10 +597,10 @@ static void test_Extract(void) "Expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND), got %08x\n", res); ok(session.Error.erfOper == FDIERROR_CABINET_NOT_FOUND, "Expected FDIERROR_CABINET_NOT_FOUND, got %d\n", session.Error.erfOper); - ok(session.Error.fError == TRUE, "Expected TRUE, got %d\n", session.Error.fError); } ok(session.FileSize == 0, "Expected 0, got %d\n", session.FileSize); ok(session.Error.erfType == 0, "Expected 0, got %d\n", session.Error.erfType); + ok(session.Error.fError == TRUE, "Expected TRUE, got %d\n", session.Error.fError); ok(session.FileCount == 0, "Expected 0, got %d\n", session.FileCount); ok(session.Operation == (EXTRACT_FILLFILELIST | EXTRACT_EXTRACTFILES), "Expected EXTRACT_FILLFILELIST | EXTRACT_EXTRACTFILES, got %d\n", session.Operation);
1
0
0
0
Bryan DeGrendel : mscoree: Return S_OK if mono runtime is found.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: b76efcb61f0a6f47cffff56f9d3a0f88e7abc1f4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b76efcb61f0a6f47cffff56f9…
Author: Bryan DeGrendel <sirnuke(a)gmail.com> Date: Thu Aug 23 16:22:28 2007 -0400 mscoree: Return S_OK if mono runtime is found. --- dlls/mscoree/mscoree_main.c | 96 +++++++++++++++++++++++-------------------- 1 files changed, 52 insertions(+), 44 deletions(-) diff --git a/dlls/mscoree/mscoree_main.c b/dlls/mscoree/mscoree_main.c index 678b346..b3879c0 100644 --- a/dlls/mscoree/mscoree_main.c +++ b/dlls/mscoree/mscoree_main.c @@ -34,50 +34,6 @@ WINE_DEFAULT_DEBUG_CHANNEL( mscoree ); -HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor, - LPCWSTR pwszHostConfigFile, VOID *pReserved, - DWORD startupFlags, REFCLSID rclsid, - REFIID riid, LPVOID *ppv) -{ - FIXME("(%s, %s, %s, %p, %d, %p, %p, %p): stub!\n", debugstr_w(pwszVersion), - debugstr_w(pwszBuildFlavor), debugstr_w(pwszHostConfigFile), pReserved, - startupFlags, rclsid, riid, ppv); - - return E_FAIL; -} - -BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -{ - TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); - - switch (fdwReason) - { - case DLL_WINE_PREATTACH: - return FALSE; /* prefer native version */ - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hinstDLL); - break; - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} - -BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) -{ - FIXME("(%p, %d, %p): stub\n", hinstDLL, fdwReason, lpvReserved); - - switch (fdwReason) - { - case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hinstDLL); - break; - case DLL_PROCESS_DETACH: - break; - } - return TRUE; -} - static LPWSTR get_mono_exe(void) { static const WCHAR mono_exe[] = {'b','i','n','\\','m','o','n','o','.','e','x','e',' ',0}; @@ -126,6 +82,58 @@ static LPWSTR get_mono_exe(void) return ret; } +HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR pwszVersion, LPCWSTR pwszBuildFlavor, + LPCWSTR pwszHostConfigFile, VOID *pReserved, + DWORD startupFlags, REFCLSID rclsid, + REFIID riid, LPVOID *ppv) +{ + WCHAR *mono_exe; + + FIXME("(%s, %s, %s, %p, %d, %p, %p, %p): semi-stub!\n", debugstr_w(pwszVersion), + debugstr_w(pwszBuildFlavor), debugstr_w(pwszHostConfigFile), pReserved, + startupFlags, rclsid, riid, ppv); + + if (!(mono_exe = get_mono_exe())) + { + MESSAGE("wine: Install the Windows version of Mono to run .NET executables\n"); + return E_FAIL; + } + + return S_OK; +} + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + +BOOL WINAPI _CorDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + FIXME("(%p, %d, %p): stub\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + __int32 WINAPI _CorExeMain(void) { STARTUPINFOW si;
1
0
0
0
Mikolaj Zalewski : msvcrt: Implement and test _mbsbtype.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: 758539c8a3ddd75b6dff2a42752100ec75c833fd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=758539c8a3ddd75b6dff2a427…
Author: Mikolaj Zalewski <mikolajz(a)google.com> Date: Thu Aug 23 18:11:43 2007 -0700 msvcrt: Implement and test _mbsbtype. --- dlls/msvcrt/mbcs.c | 32 ++++++++++++++++++++++++++++++++ dlls/msvcrt/msvcrt.spec | 2 +- dlls/msvcrt/tests/string.c | 18 ++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletions(-) diff --git a/dlls/msvcrt/mbcs.c b/dlls/msvcrt/mbcs.c index 91efadd..258751e 100644 --- a/dlls/msvcrt/mbcs.c +++ b/dlls/msvcrt/mbcs.c @@ -1089,6 +1089,38 @@ int CDECL _ismbstrail(const unsigned char* start, const unsigned char* str) } /********************************************************************* + * _mbsbtype (MSVCRT.@) + */ +int CDECL _mbsbtype(const unsigned char *str, MSVCRT_size_t count) +{ + int lead = 0; + const unsigned char *end = str + count; + int mbcp = g_mbcp_is_multibyte; + + /* Lead bytes can also be trail bytes so we need to analyse the string. + * Also we must return _MBC_ILLEGAL for chars past the end of the string + */ + while (str < end) /* Note: we skip the last byte - will check after the loop */ + { + if (!*str) + return _MBC_ILLEGAL; + lead = mbcp && !lead && _ismbblead(*str); + str++; + } + + if (lead) + if (_ismbbtrail(*str)) + return _MBC_TRAIL; + else + return _MBC_ILLEGAL; + else + if (_ismbblead(*str)) + return _MBC_LEAD; + else + return _MBC_SINGLE; +} + +/********************************************************************* * _mbsset(MSVCRT.@) */ unsigned char* CDECL _mbsset(unsigned char* str, unsigned int c) diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index fc81898..1a516f0 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -355,7 +355,7 @@ @ stub _mbctombb #(long) @ cdecl _mbctoupper(long) @ extern _mbctype MSVCRT_mbctype -@ stub _mbsbtype #(str long) +@ cdecl _mbsbtype(str long) @ cdecl _mbscat(str str) @ cdecl _mbschr(str long) @ cdecl _mbscmp(str str) diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c index 9199641..6dabc61 100644 --- a/dlls/msvcrt/tests/string.c +++ b/dlls/msvcrt/tests/string.c @@ -239,6 +239,24 @@ static void test_mbcp(void) expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[4]), FALSE, int, "%d"); expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[5]), FALSE, int, "%d"); + /* _mbsbtype */ + expect_eq(_mbsbtype(mbstring, 0), _MBC_LEAD, int, "%d"); + expect_eq(_mbsbtype(mbstring, 1), _MBC_TRAIL, int, "%d"); + expect_eq(_mbsbtype(mbstring, 2), _MBC_LEAD, int, "%d"); + expect_eq(_mbsbtype(mbstring, 3), _MBC_ILLEGAL, int, "%d"); + expect_eq(_mbsbtype(mbstring, 4), _MBC_LEAD, int, "%d"); + expect_eq(_mbsbtype(mbstring, 5), _MBC_TRAIL, int, "%d"); + expect_eq(_mbsbtype(mbstring, 6), _MBC_SINGLE, int, "%d"); + expect_eq(_mbsbtype(mbstring, 7), _MBC_LEAD, int, "%d"); + expect_eq(_mbsbtype(mbstring, 8), _MBC_ILLEGAL, int, "%d"); + + expect_eq(_mbsbtype(mbsonlylead, 0), _MBC_LEAD, int, "%d"); + expect_eq(_mbsbtype(mbsonlylead, 1), _MBC_ILLEGAL, int, "%d"); + expect_eq(_mbsbtype(mbsonlylead, 2), _MBC_ILLEGAL, int, "%d"); + expect_eq(_mbsbtype(mbsonlylead, 3), _MBC_ILLEGAL, int, "%d"); + expect_eq(_mbsbtype(mbsonlylead, 4), _MBC_ILLEGAL, int, "%d"); + expect_eq(_mbsbtype(mbsonlylead, 5), _MBC_ILLEGAL, int, "%d"); + /* _mbsnextc */ expect_eq(_mbsnextc(mbstring), 0xb0b1, int, "%x"); expect_eq(_mbsnextc(&mbstring[2]), 0xb220, int, "%x"); /* lead + invalid tail */
1
0
0
0
Mikolaj Zalewski : msvcrt: Test and fix _ismbslead and _ismbstrail.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: 884d718c4985b34c943582db90de927af8999608 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=884d718c4985b34c943582db9…
Author: Mikolaj Zalewski <mikolajz(a)google.com> Date: Thu Aug 23 17:26:14 2007 -0700 msvcrt: Test and fix _ismbslead and _ismbstrail. --- dlls/msvcrt/mbcs.c | 29 ++++++++++++++++++----------- dlls/msvcrt/tests/string.c | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 12 deletions(-) diff --git a/dlls/msvcrt/mbcs.c b/dlls/msvcrt/mbcs.c index 718e387..91efadd 100644 --- a/dlls/msvcrt/mbcs.c +++ b/dlls/msvcrt/mbcs.c @@ -1058,18 +1058,22 @@ int CDECL _ismbbtrail(unsigned int c) */ int CDECL _ismbslead(const unsigned char* start, const unsigned char* str) { - /* Lead bytes can also be trail bytes if caller messed up - * iterating through the string... + int lead = 0; + + if(!g_mbcp_is_multibyte) + return 0; + + /* Lead bytes can also be trail bytes so we need to analise the string */ - if(MSVCRT___mb_cur_max > 1) + while (start <= str) { - while(start < str) - start += MSVCRT_isleadbyte(*str) ? 2 : 1; - - if(start == str) - return MSVCRT_isleadbyte(*str); + if (!*start) + return 0; + lead = !lead && _ismbblead(*start); + start++; } - return 0; /* Must have been a trail, we skipped it */ + + return lead ? -1 : 0; } /********************************************************************* @@ -1077,8 +1081,11 @@ int CDECL _ismbslead(const unsigned char* start, const unsigned char* str) */ int CDECL _ismbstrail(const unsigned char* start, const unsigned char* str) { - /* Must not be a lead, and must be preceded by one */ - return !_ismbslead(start, str) && MSVCRT_isleadbyte(str[-1]); + /* Note: this function doesn't check _ismbbtrail */ + if ((str > start) && _ismbslead(start, str-1)) + return -1; + else + return 0; } /********************************************************************* diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c index 004d059..9199641 100644 --- a/dlls/msvcrt/tests/string.c +++ b/dlls/msvcrt/tests/string.c @@ -183,7 +183,7 @@ static void test_mbcp(void) int curr_mbcp = _getmbcp(); unsigned char *mbstring = (unsigned char *)"\xb0\xb1\xb2 \xb3\xb4 \xb5"; /* incorrect string */ unsigned char *mbstring2 = (unsigned char *)"\xb0\xb1\xb2\xb3Q\xb4\xb5"; /* correct string */ - unsigned char *mbsonlylead = (unsigned char *)"\xb0\0\xb1\xb2"; + unsigned char *mbsonlylead = (unsigned char *)"\xb0\0\xb1\xb2 \xb3"; unsigned char buf[16]; int step; @@ -205,6 +205,40 @@ static void test_mbcp(void) ok(_ismbbtrail('\xb0'), "\xa0 should be a trail byte\n"); ok(_ismbbtrail(' ') == FALSE, "' ' should not be a trail byte\n"); + /* _ismbslead */ + expect_eq(_ismbslead(mbstring, &mbstring[0]), -1, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[1]), FALSE, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[2]), -1, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[3]), FALSE, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[4]), -1, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[5]), FALSE, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[6]), FALSE, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[7]), -1, int, "%d"); + expect_eq(_ismbslead(mbstring, &mbstring[8]), FALSE, int, "%d"); + + expect_eq(_ismbslead(mbsonlylead, &mbsonlylead[0]), -1, int, "%d"); + expect_eq(_ismbslead(mbsonlylead, &mbsonlylead[1]), FALSE, int, "%d"); + expect_eq(_ismbslead(mbsonlylead, &mbsonlylead[2]), FALSE, int, "%d"); + expect_eq(_ismbslead(mbsonlylead, &mbsonlylead[5]), FALSE, int, "%d"); + + /* _ismbstrail */ + expect_eq(_ismbstrail(mbstring, &mbstring[0]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[1]), -1, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[2]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[3]), -1, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[4]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[5]), -1, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[6]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[7]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbstring, &mbstring[8]), -1, int, "%d"); + + expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[0]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[1]), -1, int, "%d"); + expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[2]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[3]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[4]), FALSE, int, "%d"); + expect_eq(_ismbstrail(mbsonlylead, &mbsonlylead[5]), FALSE, int, "%d"); + /* _mbsnextc */ expect_eq(_mbsnextc(mbstring), 0xb0b1, int, "%x"); expect_eq(_mbsnextc(&mbstring[2]), 0xb220, int, "%x"); /* lead + invalid tail */
1
0
0
0
Detlef Riekenberg : winspool: Forward AddPrinterDriver to AddPrinterDriverEx.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: b068ce5c2cde3aa531fea878e4f65e1dee4d11aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b068ce5c2cde3aa531fea878e…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Fri Aug 24 00:02:11 2007 +0200 winspool: Forward AddPrinterDriver to AddPrinterDriverEx. --- dlls/winspool.drv/info.c | 105 ++++++++++------------------------------------ 1 files changed, 22 insertions(+), 83 deletions(-) diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c index fee2210..ce5323b 100644 --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -4942,96 +4942,35 @@ BOOL WINAPI GetPrinterDriverDirectoryA(LPSTR pName, LPSTR pEnvironment, /***************************************************************************** * AddPrinterDriverA [WINSPOOL.@] + * + * See AddPrinterDriverW. + * */ BOOL WINAPI AddPrinterDriverA(LPSTR pName, DWORD level, LPBYTE pDriverInfo) { - DRIVER_INFO_3A di3; - HKEY hkeyDrivers, hkeyName; - static CHAR empty[] = "", - nullnull[] = "\0"; - - TRACE("(%s,%d,%p)\n",debugstr_a(pName),level,pDriverInfo); - - if(level != 2 && level != 3) { - SetLastError(ERROR_INVALID_LEVEL); - return FALSE; - } - if ((pName) && (pName[0])) { - FIXME("pName= %s - unsupported\n", debugstr_a(pName)); - SetLastError(ERROR_INVALID_PARAMETER); - return FALSE; - } - if(!pDriverInfo) { - WARN("pDriverInfo == NULL\n"); - SetLastError(ERROR_INVALID_PARAMETER); - return FALSE; - } - - if(level == 3) - di3 = *(DRIVER_INFO_3A *)pDriverInfo; - else { - memset(&di3, 0, sizeof(di3)); - memcpy(&di3, pDriverInfo, sizeof(DRIVER_INFO_2A)); - } - - if(!di3.pName || !di3.pDriverPath || !di3.pConfigFile || - !di3.pDataFile) { - SetLastError(ERROR_INVALID_PARAMETER); - return FALSE; - } - - if(!di3.pDefaultDataType) di3.pDefaultDataType = empty; - if(!di3.pDependentFiles) di3.pDependentFiles = nullnull; - if(!di3.pHelpFile) di3.pHelpFile = empty; - if(!di3.pMonitorName) di3.pMonitorName = empty; - - hkeyDrivers = WINSPOOL_OpenDriverReg(di3.pEnvironment, FALSE); - - if(!hkeyDrivers) { - ERR("Can't create Drivers key\n"); - return FALSE; - } - - if(level == 2) { /* apparently can't overwrite with level2 */ - if(RegOpenKeyA(hkeyDrivers, di3.pName, &hkeyName) == ERROR_SUCCESS) { - RegCloseKey(hkeyName); - RegCloseKey(hkeyDrivers); - WARN("Trying to create existing printer driver %s\n", debugstr_a(di3.pName)); - SetLastError(ERROR_PRINTER_DRIVER_ALREADY_INSTALLED); - return FALSE; - } - } - if(RegCreateKeyA(hkeyDrivers, di3.pName, &hkeyName) != ERROR_SUCCESS) { - RegCloseKey(hkeyDrivers); - ERR("Can't create Name key\n"); - return FALSE; - } - RegSetValueExA(hkeyName, "Configuration File", 0, REG_SZ, (LPBYTE) di3.pConfigFile, - lstrlenA(di3.pConfigFile) + 1); - RegSetValueExA(hkeyName, "Data File", 0, REG_SZ, (LPBYTE) di3.pDataFile, lstrlenA(di3.pDataFile) + 1); - RegSetValueExA(hkeyName, "Driver", 0, REG_SZ, (LPBYTE) di3.pDriverPath, lstrlenA(di3.pDriverPath) + 1); - RegSetValueExA(hkeyName, "Version", 0, REG_DWORD, (LPBYTE) &di3.cVersion, - sizeof(DWORD)); - RegSetValueExA(hkeyName, "Datatype", 0, REG_SZ, (LPBYTE) di3.pDefaultDataType, lstrlenA(di3.pDefaultDataType)); - RegSetValueExA(hkeyName, "Dependent Files", 0, REG_MULTI_SZ, - (LPBYTE) di3.pDependentFiles, multi_sz_lenA(di3.pDependentFiles)); - RegSetValueExA(hkeyName, "Help File", 0, REG_SZ, (LPBYTE) di3.pHelpFile, lstrlenA(di3.pHelpFile) + 1); - RegSetValueExA(hkeyName, "Monitor", 0, REG_SZ, (LPBYTE) di3.pMonitorName, lstrlenA(di3.pMonitorName) + 1); - RegCloseKey(hkeyName); - RegCloseKey(hkeyDrivers); - - return TRUE; + TRACE("(%s, %d, %p)\n", debugstr_a(pName), level, pDriverInfo); + return AddPrinterDriverExA(pName, level, pDriverInfo, APD_COPY_NEW_FILES); } -/***************************************************************************** - * AddPrinterDriverW [WINSPOOL.@] +/****************************************************************************** + * AddPrinterDriverW (WINSPOOL.@) + * + * Install a Printer Driver + * + * PARAMS + * pName [I] Servername or NULL (local Computer) + * level [I] Level for the supplied DRIVER_INFO_*W struct + * pDriverInfo [I] PTR to DRIVER_INFO_*W struct with the Driver Parameter + * + * RESULTS + * Success: TRUE + * Failure: FALSE + * */ -BOOL WINAPI AddPrinterDriverW(LPWSTR printerName,DWORD level, - LPBYTE pDriverInfo) +BOOL WINAPI AddPrinterDriverW(LPWSTR pName, DWORD level, LPBYTE pDriverInfo) { - FIXME("(%s,%d,%p): stub\n",debugstr_w(printerName), - level,pDriverInfo); - return FALSE; + TRACE("(%s, %d, %p)\n", debugstr_w(pName), level, pDriverInfo); + return AddPrinterDriverExW(pName, level, pDriverInfo, APD_COPY_NEW_FILES); } /*****************************************************************************
1
0
0
0
Andrew Talbot : rsaenh: Constify some variables.
by Alexandre Julliard
24 Aug '07
24 Aug '07
Module: wine Branch: master Commit: c94f113f4f64f408fb6d62c5400a8358e9a83f75 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c94f113f4f64f408fb6d62c54…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Thu Aug 23 21:32:19 2007 +0100 rsaenh: Constify some variables. --- dlls/rsaenh/implglue.c | 4 ++-- dlls/rsaenh/implglue.h | 4 ++-- dlls/rsaenh/rsaenh.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/rsaenh/implglue.c b/dlls/rsaenh/implglue.c index 32268a1..6953161 100644 --- a/dlls/rsaenh/implglue.c +++ b/dlls/rsaenh/implglue.c @@ -328,7 +328,7 @@ BOOL gen_rand_impl(BYTE *pbBuffer, DWORD dwLen) return SystemFunction036(pbBuffer, dwLen); } -BOOL export_public_key_impl(BYTE *pbDest, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen,DWORD *pdwPubExp) +BOOL export_public_key_impl(BYTE *pbDest, const KEY_CONTEXT *pKeyContext, DWORD dwKeyLen,DWORD *pdwPubExp) { mp_to_unsigned_bin(&pKeyContext->rsa.N, pbDest); reverse_bytes(pbDest, dwKeyLen); @@ -362,7 +362,7 @@ BOOL import_public_key_impl(CONST BYTE *pbSrc, KEY_CONTEXT *pKeyContext, DWORD d return TRUE; } -BOOL export_private_key_impl(BYTE *pbDest, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, +BOOL export_private_key_impl(BYTE *pbDest, const KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, DWORD *pdwPubExp) { mp_to_unsigned_bin(&pKeyContext->rsa.N, pbDest); diff --git a/dlls/rsaenh/implglue.h b/dlls/rsaenh/implglue.h index 5c82956..597ca1e 100644 --- a/dlls/rsaenh/implglue.h +++ b/dlls/rsaenh/implglue.h @@ -86,11 +86,11 @@ BOOL encrypt_block_impl(ALG_ID aiAlgid, DWORD dwKeySpec, KEY_CONTEXT *pKeyContex DWORD enc); BOOL encrypt_stream_impl(ALG_ID aiAlgid, KEY_CONTEXT *pKeyContext, BYTE *pbInOut, DWORD dwLen); -BOOL export_public_key_impl(BYTE *pbDest, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, +BOOL export_public_key_impl(BYTE *pbDest, const KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, DWORD *pdwPubExp); BOOL import_public_key_impl(CONST BYTE *pbSrc, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, DWORD dwPubExp); -BOOL export_private_key_impl(BYTE *pbDest, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, +BOOL export_private_key_impl(BYTE *pbDest, const KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, DWORD *pdwPubExp); BOOL import_private_key_impl(CONST BYTE* pbSrc, KEY_CONTEXT *pKeyContext, DWORD dwKeyLen, DWORD dwPubExp); diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c index 1ff1370..8a27e2c 100644 --- a/dlls/rsaenh/rsaenh.c +++ b/dlls/rsaenh/rsaenh.c @@ -521,7 +521,7 @@ static inline void free_hmac_info(PHMAC_INFO hmac_info) { * NOTES * See Internet RFC 2104 for details on the HMAC algorithm. */ -static BOOL copy_hmac_info(PHMAC_INFO *dst, PHMAC_INFO src) { +static BOOL copy_hmac_info(PHMAC_INFO *dst, const HMAC_INFO *src) { if (!src) return FALSE; *dst = HeapAlloc(GetProcessHeap(), 0, sizeof(HMAC_INFO)); if (!*dst) return FALSE; @@ -974,7 +974,7 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr) * Success: Handle to the new key container. * Failure: INVALID_HANDLE_VALUE */ -static HCRYPTPROV new_key_container(PCCH pszContainerName, DWORD dwFlags, PVTableProvStruc pVTable) +static HCRYPTPROV new_key_container(PCCH pszContainerName, DWORD dwFlags, const VTableProvStruc *pVTable) { KEYCONTAINER *pKeyContainer; HCRYPTPROV hKeyContainer; @@ -1039,7 +1039,7 @@ static HCRYPTPROV new_key_container(PCCH pszContainerName, DWORD dwFlags, PVTabl * Success: Handle to the key container read from the registry * Failure: INVALID_HANDLE_VALUE */ -static HCRYPTPROV read_key_container(PCHAR pszContainerName, DWORD dwFlags, PVTableProvStruc pVTable) +static HCRYPTPROV read_key_container(PCHAR pszContainerName, DWORD dwFlags, const VTableProvStruc *pVTable) { CHAR szRSABase[MAX_PATH]; BYTE *pbKey;
1
0
0
0
← Newer
1
...
19
20
21
22
23
24
25
...
109
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Results per page:
10
25
50
100
200