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
July 2008
----- 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
1114 discussions
Start a n
N
ew thread
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : taskmgr: Updated Korean resource.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: a617634e2eea1e72c00d6b0c36fd6dc778d502f7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a617634e2eea1e72c00d6b0c3…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Wed Jul 2 10:13:54 2008 +0900 taskmgr: Updated Korean resource. --- programs/taskmgr/Ko.rc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/taskmgr/Ko.rc b/programs/taskmgr/Ko.rc index 14070a2..00e05b6 100644 --- a/programs/taskmgr/Ko.rc +++ b/programs/taskmgr/Ko.rc @@ -433,12 +433,12 @@ STRINGTABLE DISCARDABLE BEGIN IDS_APP_TITLE "�۾� ������" IDC_TASKMGR "�۾� ������" - IDS_RUNDLG_CAPTION "Create New Task" + IDS_RUNDLG_CAPTION "�� �۾� �����" END STRINGTABLE DISCARDABLE BEGIN - ID_FILE_NEW "�� Ǯ�� ����" + ID_FILE_NEW "�� ���α� ����" ID_OPTIONS_ALWAYSONTOP "�۾������ڴ� �ּ�ȭ ���� �ʴ� �� �ٸ� â �տ� �ְ� �˴ϴ�" ID_OPTIONS_MINIMIZEONUSE "�۾������ڴ� ��ȯ �۾��� �Ϸ�� �� �ּ�ȭ�˴ϴ�"
1
0
0
0
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : shell32: Updated Korean resource.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: d0add535440fac5249b355c09781b8239a30ad77 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d0add535440fac5249b355c09…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Wed Jul 2 10:13:32 2008 +0900 shell32: Updated Korean resource. --- dlls/shell32/shell32_Ko.rc | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/dlls/shell32/shell32_Ko.rc b/dlls/shell32/shell32_Ko.rc index 0379926..04f4af0 100644 --- a/dlls/shell32/shell32_Ko.rc +++ b/dlls/shell32/shell32_Ko.rc @@ -153,20 +153,22 @@ FONT 10, "MS Shell Dlg" LTEXT "Wine was brought to you by:", IDC_ABOUT_WINE_TEXT, 8, 54, 204, 10 } + SHELL_RUN_DLG DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 227, 95 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU CAPTION "" FONT 8, "MS Shell Dlg" { -ICON "", 12297, 7, 11, 18, 20, WS_VISIBLE -LTEXT "Ǯ��,����,������ ���ͳ� �ڿ�, ���� Wine�� �� �̸��� �����ּ���.", 12289, 36, 11, 182, 18 -LTEXT "����(&O):", 12305, 7, 39, 24, 10 -CONTROL "", 12298, "COMBOBOX", WS_TABSTOP | WS_GROUP | WS_VSCROLL | WS_VISIBLE | CBS_DISABLENOSCROLL | CBS_AUTOHSCROLL | CBS_DROPDOWN, 36, 37, 183, 100 -DEFPUSHBUTTON "Ȯ��", IDOK, 62, 63, 50, 14, WS_TABSTOP -PUSHBUTTON "���", IDCANCEL, 116, 63, 50, 14, WS_TABSTOP -PUSHBUTTON "ã��(&B)...", 12288, 170, 63, 50, 14, WS_TABSTOP + ICON "", IDC_RUNDLG_ICON, 7, 11, 18, 20, WS_VISIBLE + LTEXT "Ǯ��,����,������ ���ͳ� �ڿ�, ���� Wine�� �� ���� �̸��� �����ּ���.", IDC_RUNDLG_DESCRIPTION, 36, 11, 182, 18 + LTEXT "����(&O):", IDC_RUNDLG_LABEL, 7, 39, 24, 10 + CONTROL "", IDC_RUNDLG_EDITPATH, "COMBOBOX", WS_TABSTOP | WS_GROUP | WS_VSCROLL | WS_VISIBLE | CBS_DISABLENOSCROLL | CBS_AUTOHSCROLL | CBS_DROPDOWN, 36, 37, 183, 100 + DEFPUSHBUTTON "Ȯ��", IDOK, 62, 63, 50, 14, WS_TABSTOP + PUSHBUTTON "���", IDCANCEL, 116, 63, 50, 14, WS_TABSTOP + PUSHBUTTON "ã��(&B)...", IDC_RUNDLG_BROWSE, 170, 63, 50, 14, WS_TABSTOP } + STRINGTABLE { /* columns in the shellview */ @@ -222,6 +224,12 @@ IDS_RESTART_PROMPT " IDS_SHUTDOWN_TITLE "����" IDS_SHUTDOWN_PROMPT "����� Wine ������ ���ڽ��ϱ�?" +/* Run File dialog */ +IDS_RUNDLG_ERROR "���� ���� ��ȭ ���ڸ� �����ټ� �����ϴ�(���� ����)" +IDS_RUNDLG_BROWSE_ERROR "ã�� ��ȭ ���ڸ� ���� �� �� �����ϴ�(���� ����)" +IDS_RUNDLG_BROWSE_CAPTION "ã��" +IDS_RUNDLG_BROWSE_FILTER "���� ����\0*.exe\0A��� ����\0*.*\0\0" + /* shell folder path default values */ IDS_PROGRAMS "���� ��\\���α�" IDS_PERSONAL "�� ����"
1
0
0
0
Detlef Riekenberg : spoolss: Implement InitializeRouter.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: 76204941b815a8095f8d99bdca4862faec6a1fa6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=76204941b815a8095f8d99bdc…
Author: Detlef Riekenberg <wine.dev(a)web.de> Date: Wed Jul 2 00:16:46 2008 +0200 spoolss: Implement InitializeRouter. --- dlls/spoolss/spoolss.spec | 2 +- dlls/spoolss/spoolss_main.c | 101 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 1 deletions(-) diff --git a/dlls/spoolss/spoolss.spec b/dlls/spoolss/spoolss.spec index 5645b2e..da5ee04 100644 --- a/dlls/spoolss/spoolss.spec +++ b/dlls/spoolss/spoolss.spec @@ -73,7 +73,7 @@ @ stub GetPrinterDriverW @ stub GetPrinterW @ stdcall ImpersonatePrinterClient(long) -@ stub InitializeRouter +@ stdcall InitializeRouter() @ stdcall IsLocalCall() @ stub IsNamedPipeRpcCall @ stub LoadDriver diff --git a/dlls/spoolss/spoolss_main.c b/dlls/spoolss/spoolss_main.c index c701c0d..cc4487c 100644 --- a/dlls/spoolss/spoolss_main.c +++ b/dlls/spoolss/spoolss_main.c @@ -23,16 +23,104 @@ #include "windef.h" #include "winbase.h" #include "winerror.h" +#include "winreg.h" + +#include "wingdi.h" +#include "winspool.h" +#include "ddk/winsplp.h" + #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(spoolss); /* ################################ */ +static CRITICAL_SECTION backend_cs; +static CRITICAL_SECTION_DEBUG backend_cs_debug = +{ + 0, 0, &backend_cs, + { &backend_cs_debug.ProcessLocksList, &backend_cs_debug.ProcessLocksList }, + 0, 0, { (DWORD_PTR)(__FILE__ ": backend_cs") } +}; +static CRITICAL_SECTION backend_cs = { &backend_cs_debug, -1, 0, 0, 0, 0 }; + +/* ################################ */ + static HMODULE hwinspool; +static HMODULE hlocalspl; +static BOOL (WINAPI *pInitializePrintProvidor)(LPPRINTPROVIDOR, DWORD, LPWSTR); + +static PRINTPROVIDOR * backend; + +/* ################################ */ + +static const WCHAR localspldllW[] = {'l','o','c','a','l','s','p','l','.','d','l','l',0}; static const WCHAR winspooldrvW[] = {'w','i','n','s','p','o','o','l','.','d','r','v',0}; +/****************************************************************************** + * backend_load [internal] + * + * load and init our backend (the local printprovider: "localspl.dll") + * + * PARAMS + * + * RETURNS + * Success: TRUE + * Failure: FALSE and RPC_S_SERVER_UNAVAILABLE + * + * NOTES + * In windows, the spooler router (spoolss.dll) support multiple + * printprovider (localspl.dll for the local system) + * + */ +static BOOL backend_load(void) +{ + static PRINTPROVIDOR mybackend; + DWORD res; + + if (backend) return TRUE; + + EnterCriticalSection(&backend_cs); + hlocalspl = LoadLibraryW(localspldllW); + if (hlocalspl) { + pInitializePrintProvidor = (void *) GetProcAddress(hlocalspl, "InitializePrintProvidor"); + if (pInitializePrintProvidor) { + + /* native localspl does not clear unused entries */ + memset(&mybackend, 0, sizeof(mybackend)); + res = pInitializePrintProvidor(&mybackend, sizeof(mybackend), NULL); + if (res) { + backend = &mybackend; + LeaveCriticalSection(&backend_cs); + TRACE("backend: %p (%p)\n", backend, hlocalspl); + return TRUE; + } + } + FreeLibrary(hlocalspl); + } + + LeaveCriticalSection(&backend_cs); + + WARN("failed to load the backend: %u\n", GetLastError()); + SetLastError(RPC_S_SERVER_UNAVAILABLE); + return FALSE; +} + /****************************************************************** + * unload_backend [internal] + * + */ +static void backend_unload(void) +{ + EnterCriticalSection(&backend_cs); + if (backend) { + backend = NULL; + FreeLibrary(hlocalspl); + } + LeaveCriticalSection(&backend_cs); +} + +/****************************************************************************** * */ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) @@ -45,6 +133,10 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) case DLL_PROCESS_ATTACH: { DisableThreadLibraryCalls(hinstDLL); break; + + case DLL_PROCESS_DETACH: + backend_unload(); + break; } } return TRUE; @@ -170,6 +262,15 @@ BOOL WINAPI ImpersonatePrinterClient(HANDLE hToken) } /****************************************************************** + * InitializeRouter [SPOOLSS.@] + */ +BOOL WINAPI InitializeRouter(void) +{ + TRACE("()\n"); + return backend_load(); +} + +/****************************************************************** * IsLocalCall [SPOOLSS.@] */ BOOL WINAPI IsLocalCall(void)
1
0
0
0
Austin English : crypt32: Fix a couple of test failures on Vista.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: ae24e21da12dfde382602cb9e6890b1ae358e6d5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ae24e21da12dfde382602cb9e…
Author: Austin English <austinenglish(a)gmail.com> Date: Tue Jul 1 15:09:17 2008 -0500 crypt32: Fix a couple of test failures on Vista. --- dlls/crypt32/tests/crl.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/crypt32/tests/crl.c b/dlls/crypt32/tests/crl.c index 3a65c7d..561953b 100644 --- a/dlls/crypt32/tests/crl.c +++ b/dlls/crypt32/tests/crl.c @@ -164,11 +164,13 @@ static void testAddCRL(void) /* Weird--bad add disposition leads to an access violation in Windows. */ ret = CertAddEncodedCRLToStore(0, X509_ASN_ENCODING, signedCRL, sizeof(signedCRL), 0, NULL); - ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION, - "Expected STATUS_ACCESS_VIOLATION, got %08x\n", GetLastError()); + ok(!ret && (GetLastError() == STATUS_ACCESS_VIOLATION || + GetLastError() == E_INVALIDARG /* Vista */), + "Expected STATUS_ACCESS_VIOLATION or E_INVALIDARG, got %08x\n", GetLastError()); ret = CertAddEncodedCRLToStore(store, X509_ASN_ENCODING, signedCRL, sizeof(signedCRL), 0, NULL); - ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION, + ok(!ret && (GetLastError() == STATUS_ACCESS_VIOLATION || + GetLastError() == E_INVALIDARG /* Vista */), "Expected STATUS_ACCESS_VIOLATION, got %08x\n", GetLastError()); /* Weird--can add a CRL to the NULL store (does this have special meaning?)
1
0
0
0
Peter Oberndorfer : opengl32: Fix a typo (wglShaderLists -> wglShareLists).
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: c5a702f513623d81aac5f5d9ad4046dc074c31ef URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c5a702f513623d81aac5f5d9a…
Author: Peter Oberndorfer <kumbayo84(a)arcor.de> Date: Tue Jul 1 22:08:30 2008 +0200 opengl32: Fix a typo (wglShaderLists -> wglShareLists). --- dlls/winex11.drv/opengl.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 23f53d6..a68591d 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1850,7 +1850,7 @@ BOOL X11DRV_wglMakeContextCurrentARB(X11DRV_PDEVICE* pDrawDev, X11DRV_PDEVICE* p /** * X11DRV_wglShareLists * - * For OpenGL32 wglShaderLists. + * For OpenGL32 wglShareLists. */ BOOL X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) { Wine_GLContext *org = (Wine_GLContext *) hglrc1; @@ -3652,7 +3652,7 @@ BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) { /** * X11DRV_wglShareLists * - * For OpenGL32 wglShaderLists. + * For OpenGL32 wglShareLists. */ BOOL X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) { opengl_error();
1
0
0
0
Dan Hipschman : widl: Factor a small part of the grammar.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: d87bc0520f1bc6f6201b8b44bd25cf6dff69184c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d87bc0520f1bc6f6201b8b44b…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Jul 1 13:09:56 2008 -0700 widl: Factor a small part of the grammar. --- tools/widl/parser.y | 22 ++++++++-------------- 1 files changed, 8 insertions(+), 14 deletions(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index fc27b2d..180ca98 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -311,7 +311,7 @@ static func_list_t *append_func_from_statement(func_list_t *list, statement_t *s %type <type> dispinterface dispinterfacehdr dispinterfacedef %type <type> module modulehdr moduledef %type <type> base_type int_std -%type <type> enumdef structdef uniondef +%type <type> enumdef structdef uniondef typedecl %type <type> type %type <ifref> coclass_int %type <ifref_list> coclass_ints @@ -401,7 +401,7 @@ semicolon_opt: statement: cppquote { $$ = make_statement_cppquote($1); } - | enumdef ';' { $$ = make_statement_type_decl($1); + | typedecl ';' { $$ = make_statement_type_decl($1); if (!parse_only && do_header) { write_type_def_or_decl(header, $1, FALSE, NULL); fprintf(header, ";\n\n"); @@ -411,19 +411,13 @@ statement: if (!parse_only && do_header) write_declaration($1, is_in_interface); } | import { $$ = make_statement_import($1); } - | structdef ';' { $$ = make_statement_type_decl($1); - if (!parse_only && do_header) { - write_type_def_or_decl(header, $1, FALSE, NULL); - fprintf(header, ";\n\n"); - } - } | typedef ';' { $$ = $1; } - | uniondef ';' { $$ = make_statement_type_decl($1); - if (!parse_only && do_header) { - write_type_def_or_decl(header, $1, FALSE, NULL); - fprintf(header, ";\n\n"); - } - } + ; + +typedecl: + enumdef + | structdef + | uniondef ; cppquote: tCPPQUOTE '(' aSTRING ')' { $$ = $3; if (!parse_only && do_header) fprintf(header, "%s\n", $3); }
1
0
0
0
Peter Oberndorfer : ntdll: Add broken() to two test cases.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: 9cd60e20242646b2f070892226dd79ee59ac2764 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9cd60e20242646b2f07089222…
Author: Peter Oberndorfer <kumbayo84(a)arcor.de> Date: Tue Jul 1 21:53:09 2008 +0200 ntdll: Add broken() to two test cases. --- dlls/ntdll/tests/exception.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c index 8116503..3a9b65d 100644 --- a/dlls/ntdll/tests/exception.c +++ b/dlls/ntdll/tests/exception.c @@ -169,6 +169,11 @@ static const struct exception 0, 5, STATUS_ACCESS_VIOLATION, 2, { 1, 0xfffffffe } }, { { 0xa3, 0xff, 0xff, 0xff, 0xff, 0xc3 }, /* movl %eax,0xffffffff; ret */ 0, 5, STATUS_ACCESS_VIOLATION, 2, { 1, 0xffffffff } }, + + /* test exception with cleared %ds and %es */ + { { 0x1e, 0x06, 0x31, 0xc0, 0x8e, 0xd8, 0x8e, 0xc0, 0xfa, 0x07, 0x1f, 0xc3 }, + /* push %ds; push %es; xorl %eax,%eax; mov %ax,%ds; mov %ax,%es; cli; pop %es; pop %ds; ret */ + 8, 1, STATUS_PRIVILEGED_INSTRUCTION, 0 }, }; static int got_exception; @@ -216,7 +221,7 @@ LONG CALLBACK rtlraiseexception_vectored_handler(EXCEPTION_POINTERS *ExceptionIn if(rec->ExceptionCode == EXCEPTION_BREAKPOINT) { ok(context->Eip == (DWORD)code_mem + 0xa || - context->Eip == (DWORD)code_mem + 0xb, /* win2k3 */ + broken(context->Eip == (DWORD)code_mem + 0xb), /* win2k3 */ "Eip at %x instead of %x or %x\n", context->Eip, (DWORD)code_mem + 0xa, (DWORD)code_mem + 0xb); } @@ -248,7 +253,7 @@ static DWORD rtlraiseexception_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTR if(rec->ExceptionCode == EXCEPTION_BREAKPOINT) { ok(context->Eip == (DWORD)code_mem + 0xa || - context->Eip == (DWORD)code_mem + 0xb, /* win2k3 */ + broken(context->Eip == (DWORD)code_mem + 0xb), /* win2k3 */ "Eip at %x instead of %x or %x\n", context->Eip, (DWORD)code_mem + 0xa, (DWORD)code_mem + 0xb); }
1
0
0
0
Dan Hipschman : widl: Implement type redefinition checks.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: 6725c5d756dc6cd1dc19e7de0e0c45005a2024a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6725c5d756dc6cd1dc19e7de0…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Jul 1 13:08:51 2008 -0700 widl: Implement type redefinition checks. This allows widl to catch type redefinitions and report an error, like MIDL. However, this does a better job than MIDL since it also reports the location of the originial definition, like GCC. --- tools/widl/parser.y | 41 ++++++++++++++++++++++++++++++++++------- tools/widl/typelib.c | 1 + tools/widl/widltypes.h | 3 +++ 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 6616193..fc27b2d 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -156,6 +156,8 @@ static attr_list_t *check_module_attrs(const char *name, attr_list_t *attrs); static attr_list_t *check_coclass_attrs(const char *name, attr_list_t *attrs); const char *get_attr_display_name(enum attr_type type); static void add_explicit_handle_if_necessary(func_t *func); +static type_t *find_type_helper(const char *name, int t); +static void check_def(const type_t *t); static statement_t *make_statement(enum statement_type type); static statement_t *make_statement_type_decl(type_t *type); @@ -845,12 +847,15 @@ int_std: tINT { $$ = make_builtin($<str>1); } coclass: tCOCLASS aIDENTIFIER { $$ = make_class($2); } | tCOCLASS aKNOWNTYPE { $$ = find_type($2, 0); - if ($$->defined) error_loc("multiple definition error\n"); - if ($$->kind != TKIND_COCLASS) error_loc("%s was not declared a coclass\n", $2); + if ($$->kind != TKIND_COCLASS) + error_loc("%s was not declared a coclass at %s:%d\n", + $2, $$->loc_info.input_name, + $$->loc_info.line_number); } ; coclasshdr: attributes coclass { $$ = $2; + check_def($$); $$->attrs = check_coclass_attrs($2->name, $1); if (!parse_only && do_header) write_coclass($$); @@ -882,7 +887,7 @@ dispinterfacehdr: attributes dispinterface { attr_t *attrs; is_in_interface = TRUE; is_object_interface = TRUE; $$ = $2; - if ($$->defined) error_loc("multiple definition error\n"); + check_def($$); attrs = make_attr(ATTR_DISPINTERFACE); $$->attrs = append_attr( check_dispiface_attrs($2->name, $1), attrs ); $$->ref = find_type("IDispatch", 0); @@ -934,7 +939,7 @@ interfacehdr: attributes interface { $$.interface = $2; pointer_default = get_attrv($1, ATTR_POINTERDEFAULT); is_object_interface = is_object($1); is_in_interface = TRUE; - if ($2->defined) error_loc("multiple definition error\n"); + check_def($2); $2->attrs = check_iface_attrs($2->name, $1); $2->defined = TRUE; if (!parse_only && do_header) write_forward($2); @@ -1060,6 +1065,7 @@ pointer_type: structdef: tSTRUCT t_ident '{' fields '}' { $$ = get_typev(RPC_FC_STRUCT, $2, tsSTRUCT); /* overwrite RPC_FC_STRUCT with a more exact type */ + check_def($$); $$->type = get_struct_type( $4 ); $$->kind = TKIND_RECORD; $$->fields_or_args = $4; @@ -1089,6 +1095,7 @@ typedef: tTYPEDEF m_attributes decl_spec declarator_list uniondef: tUNION t_ident '{' ne_union_fields '}' { $$ = get_typev(RPC_FC_NON_ENCAPSULATED_UNION, $2, tsUNION); + check_def($$); $$->kind = TKIND_UNION; $$->fields_or_args = $4; $$->defined = TRUE; @@ -1097,6 +1104,7 @@ uniondef: tUNION t_ident '{' ne_union_fields '}' tSWITCH '(' s_field ')' m_ident '{' cases '}' { var_t *u = $7; $$ = get_typev(RPC_FC_ENCAPSULATED_UNION, $2, tsUNION); + check_def($$); $$->kind = TKIND_UNION; if (!u) u = make_var( xstrdup("tagged_union") ); u->type = make_type(RPC_FC_NON_ENCAPSULATED_UNION, NULL); @@ -1390,6 +1398,7 @@ type_t *make_type(unsigned char type, type_t *ref) t->tfswrite = FALSE; t->checked = FALSE; t->typelib_idx = -1; + init_loc_info(&t->loc_info); return t; } @@ -1701,9 +1710,7 @@ static var_t *make_var(char *name) v->attrs = NULL; v->eval = NULL; v->stgclass = STG_NONE; - v->loc_info.input_name = input_name ? input_name : "stdin"; - v->loc_info.line_number = line_number; - v->loc_info.near_text = parser_text; + init_loc_info(&v->loc_info); return v; } @@ -1894,6 +1901,12 @@ static type_t *reg_typedefs(decl_spec_t *decl_spec, declarator_list_t *decls, at if (name->name) { type_t *cur; + cur = find_type_helper(name->name, 0); + if (cur) + error_loc("%s: redefinition error; original definition was at %s:%d\n", + cur->name, cur->loc_info.input_name, + cur->loc_info.line_number); + /* set the attributes to allow set_type to do some checks on them */ name->attrs = attrs; set_type(name, decl_spec, decl, 0); @@ -2896,3 +2909,17 @@ static func_list_t *append_func_from_statement(func_list_t *list, statement_t *s } return list; } + +void init_loc_info(loc_info_t *i) +{ + i->input_name = input_name ? input_name : "stdin"; + i->line_number = line_number; + i->near_text = parser_text; +} + +static void check_def(const type_t *t) +{ + if (t->defined) + error_loc("%s: redefinition error; original definition was at %s:%d\n", + t->name, t->loc_info.input_name, t->loc_info.line_number); +} diff --git a/tools/widl/typelib.c b/tools/widl/typelib.c index 4102fad..b30b323 100644 --- a/tools/widl/typelib.c +++ b/tools/widl/typelib.c @@ -70,6 +70,7 @@ type_t *alias(type_t *t, const char *name) a->kind = TKIND_ALIAS; a->attrs = NULL; a->declarray = FALSE; + init_loc_info(&a->loc_info); return a; } diff --git a/tools/widl/widltypes.h b/tools/widl/widltypes.h index c3a3948..d00a732 100644 --- a/tools/widl/widltypes.h +++ b/tools/widl/widltypes.h @@ -274,6 +274,7 @@ struct _type_t { unsigned int typestring_offset; unsigned int ptrdesc; /* used for complex structs */ int typelib_idx; + loc_info_t loc_info; unsigned int declarray : 1; /* if declared as an array */ unsigned int ignore : 1; unsigned int defined : 1; @@ -410,6 +411,8 @@ var_t *find_const(const char *name, int f); type_t *find_type(const char *name, int t); type_t *make_type(unsigned char type, type_t *ref); +void init_loc_info(loc_info_t *); + static inline type_t *get_func_return_type(const func_t *func) { return func->def->type->ref;
1
0
0
0
Dan Hipschman : include: Fix type redefinitions in IDL files.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: 6db7ce7a6dcf8023bf4c0ffc78c0eb3271e68cb0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6db7ce7a6dcf8023bf4c0ffc7…
Author: Dan Hipschman <dsh(a)linux.ucla.edu> Date: Tue Jul 1 13:08:04 2008 -0700 include: Fix type redefinitions in IDL files. --- include/d3d10.idl | 2 +- include/vmr9.idl | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/include/d3d10.idl b/include/d3d10.idl index 4e5292f..120f884 100644 --- a/include/d3d10.idl +++ b/include/d3d10.idl @@ -676,7 +676,7 @@ typedef struct D3D10_TEX2DMS_SRV { UINT UnusedField_NothingToDefine; } D3D10_TEX2DMS_SRV; -typedef struct D3D10_TEX2DMS_ARRAY_RTV { +typedef struct D3D10_TEX2DMS_ARRAY_SRV { UINT FirstArraySlice; UINT ArraySize; } D3D10_TEX2DMS_ARRAY_SRV; diff --git a/include/vmr9.idl b/include/vmr9.idl index e5e5fd8..b7f916c 100644 --- a/include/vmr9.idl +++ b/include/vmr9.idl @@ -25,7 +25,6 @@ typedef LONGLONG REFERENCE_TIME; typedef DWORD D3DFORMAT; typedef DWORD D3DPOOL; typedef HANDLE HMONITOR; -typedef HANDLE HDC; typedef struct { } AM_MEDIA_TYPE; typedef struct { } D3DCOLOR; cpp_quote("#endif")
1
0
0
0
Rob Shearman : widl: Check that the structure has been defined in check_remoting_args.
by Alexandre Julliard
02 Jul '08
02 Jul '08
Module: wine Branch: master Commit: 037fa861ab07be09a90409e5031d8207ddf27bda URL:
http://source.winehq.org/git/wine.git/?a=commit;h=037fa861ab07be09a90409e50…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Wed Jul 2 00:01:42 2008 +0100 widl: Check that the structure has been defined in check_remoting_args. --- tools/widl/parser.y | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index bb54b43..6616193 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -2611,7 +2611,12 @@ static void check_remoting_fields(const var_t *var, type_t *type) type->checked = TRUE; if (is_struct(type->type)) - fields = type->fields_or_args; + { + if (type->defined) + fields = type->fields_or_args; + else + error_loc_info(&var->loc_info, "undefined type declaration %s\n", type->name); + } else if (is_union(type->type)) { if (type->type == RPC_FC_ENCAPSULATED_UNION)
1
0
0
0
← Newer
1
...
102
103
104
105
106
107
108
...
112
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
110
111
112
Results per page:
10
25
50
100
200