winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
January 2006
----- 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
4 participants
617 discussions
Start a n
N
ew thread
Steven Edwards : gdi: Move EMRSETTEXTJUSTIFICATION structure to the private gdi header.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 50690e5fa28a1f377f1535e9ecc035c35dc19c77 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=50690e5fa28a1f377f1535e…
Author: Steven Edwards <winehacker(a)gmail.com> Date: Tue Jan 3 13:16:59 2006 +0100 gdi: Move EMRSETTEXTJUSTIFICATION structure to the private gdi header. --- dlls/gdi/gdi_private.h | 6 ++++++ include/wingdi.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/gdi/gdi_private.h b/dlls/gdi/gdi_private.h index 26df293..7e06239 100644 --- a/dlls/gdi/gdi_private.h +++ b/dlls/gdi/gdi_private.h @@ -28,6 +28,12 @@ #define METAFILE_MEMORY 1 #define METAFILE_DISK 2 +typedef struct { + EMR emr; + INT nBreakExtra; + INT nBreakCount; +} EMRSETTEXTJUSTIFICATION, *PEMRSETTEXTJUSTIFICATION; + /* extra stock object: default 1x1 bitmap for memory DCs */ #define DEFAULT_BITMAP (STOCK_LAST+1) diff --git a/include/wingdi.h b/include/wingdi.h index 032efbb..b4ea1b5 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -2648,12 +2648,6 @@ typedef struct { BYTE Data[1]; } EMRGLSBOUNDEDRECORD, *PEMRGLSBOUNDEDRECORD; -typedef struct { - EMR emr; - INT nBreakExtra; - INT nBreakCount; -} EMRSETTEXTJUSTIFICATION, *PEMRSETTEXTJUSTIFICATION; - typedef INT (CALLBACK *ENHMFENUMPROC)(HDC, HANDLETABLE *, const ENHMETARECORD *, INT, LPARAM);
1
0
0
0
Alex Villacís Lasso : msacm32: Implement ACM_METRIC_DRIVER_PRIORITY in acmMetrics.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 63413b74800566eeccafa0257f6749d2879e26cf URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=63413b74800566eeccafa02…
Author: Alex Villacís Lasso <a_villacis(a)palosanto.com> Date: Tue Jan 3 13:16:12 2006 +0100 msacm32: Implement ACM_METRIC_DRIVER_PRIORITY in acmMetrics. --- dlls/msacm/msacm32_main.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/dlls/msacm/msacm32_main.c b/dlls/msacm/msacm32_main.c index 90a01e0..379539e 100644 --- a/dlls/msacm/msacm32_main.c +++ b/dlls/msacm/msacm32_main.c @@ -221,11 +221,24 @@ MMRESULT WINAPI acmMetrics(HACMOBJ hao, FIXME("ACM_METRIC_COUNT_HARDWARE not implemented\n"); break; + case ACM_METRIC_DRIVER_PRIORITY: + /* Return current list position of driver */ + if (!hao) return MMSYSERR_INVALHANDLE; + if (!pMetric) return MMSYSERR_INVALPARAM; + mmr = MMSYSERR_INVALHANDLE; + for (i = 1, padid = MSACM_pFirstACMDriverID; padid; i++, padid = padid->pNextACMDriverID) { + if (padid == (PWINE_ACMDRIVERID)hao) { + *(LPDWORD)pMetric = i; + mmr = MMSYSERR_NOERROR; + break; + } + } + break; + case ACM_METRIC_HARDWARE_WAVE_INPUT: case ACM_METRIC_HARDWARE_WAVE_OUTPUT: case ACM_METRIC_MAX_SIZE_FILTER: case ACM_METRIC_DRIVER_SUPPORT: - case ACM_METRIC_DRIVER_PRIORITY: default: FIXME("(%p, %d, %p): stub\n", hao, uMetric, pMetric); mmr = MMSYSERR_NOTSUPPORTED;
1
0
0
0
Robert Reif : kernel: DelayLoadFailureHook crash fix.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 6501d7b155138f03d6e6247d6ab8e9b24713e5b0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6501d7b155138f03d6e6247…
Author: Robert Reif <reif(a)earthlink.net> Date: Tue Jan 3 13:15:55 2006 +0100 kernel: DelayLoadFailureHook crash fix. --- dlls/kernel/module.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/kernel/module.c b/dlls/kernel/module.c index c26345d..4610adf 100644 --- a/dlls/kernel/module.c +++ b/dlls/kernel/module.c @@ -992,7 +992,10 @@ FARPROC WINAPI DelayLoadFailureHook( LPC { ULONG_PTR args[2]; - ERR( "failed to delay load %s.%s\n", name, function ); + if ((ULONG_PTR)function >> 16) + ERR( "failed to delay load %s.%s\n", name, function ); + else + ERR( "failed to delay load %s.%u\n", name, LOWORD(function) ); args[0] = (ULONG_PTR)name; args[1] = (ULONG_PTR)function; RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );
1
0
0
0
Alexandre Julliard : Added some flex options to avoid compiler warnings.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 0ae2c69c7a8368553156945d3475a3d97043a98f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=0ae2c69c7a8368553156945…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jan 3 12:16:05 2006 +0100 Added some flex options to avoid compiler warnings. Moved options from the Makefile into the source. --- libs/wpp/Makefile.in | 3 +-- libs/wpp/ppl.l | 6 ++++-- programs/winedbg/debug.l | 2 ++ programs/winhelp/macro.lex.l | 1 + tools/widl/Makefile.in | 3 +-- tools/widl/parser.l | 5 +++-- tools/wrc/Makefile.in | 3 +-- tools/wrc/parser.l | 3 ++- 8 files changed, 15 insertions(+), 11 deletions(-) diff --git a/libs/wpp/Makefile.in b/libs/wpp/Makefile.in index 6250fb1..58a374c 100644 --- a/libs/wpp/Makefile.in +++ b/libs/wpp/Makefile.in @@ -2,7 +2,6 @@ TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ -LEXOPT = -Cf #-w -b MODULE = libwpp.a C_SRCS = \ @@ -29,7 +28,7 @@ ppy.tab.h: ppy.tab.c ppy.tab.o: ppy.tab.h @LEX_OUTPUT_ROOT@.c: ppl.l - $(LEX) $(LEXOPT) -d -Ppp -o$@ -8 $(SRCDIR)/ppl.l + $(LEX) -o$@ $(SRCDIR)/ppl.l @LEX_OUTPUT_ROOT@.o: ppy.tab.h diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l index e08e84c..020f91f 100644 --- a/libs/wpp/ppl.l +++ b/libs/wpp/ppl.l @@ -1,4 +1,4 @@ -/* +/* -*-C-*- * Wrc preprocessor lexical analysis * * Copyright 1999-2000 Bertho A. Stultiens (BS) @@ -125,7 +125,9 @@ * Special flex options and exclusive scanner start-conditions */ %option stack -%option never-interactive +%option 8bit never-interactive +%option nounput +%option prefix="pp" %x pp_pp %x pp_eol diff --git a/programs/winedbg/debug.l b/programs/winedbg/debug.l index cc3e6f8..c5aa044 100644 --- a/programs/winedbg/debug.l +++ b/programs/winedbg/debug.l @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +%option nounput + %{ #include <stdlib.h> #include <string.h> diff --git a/programs/winhelp/macro.lex.l b/programs/winhelp/macro.lex.l index c35c5a6..b614821 100644 --- a/programs/winhelp/macro.lex.l +++ b/programs/winhelp/macro.lex.l @@ -20,6 +20,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ %} +%option nounput %x quote %{ #include <assert.h> diff --git a/tools/widl/Makefile.in b/tools/widl/Makefile.in index 6d52a59..6d10d19 100644 --- a/tools/widl/Makefile.in +++ b/tools/widl/Makefile.in @@ -2,7 +2,6 @@ TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ -LEXOPT = -Cf #-w -b EXEEXT = @EXEEXT@ PROGRAMS = widl$(EXEEXT) @@ -39,7 +38,7 @@ parser.tab.h: parser.tab.c parser.tab.o: parser.tab.h @LEX_OUTPUT_ROOT@.c: parser.l - $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l + $(LEX) $(SRCDIR)/parser.l @LEX_OUTPUT_ROOT@.o: parser.tab.h diff --git a/tools/widl/parser.l b/tools/widl/parser.l index 43ed190..4955bad 100644 --- a/tools/widl/parser.l +++ b/tools/widl/parser.l @@ -1,4 +1,4 @@ -/* +/* -*-C-*- * IDL Compiler * * Copyright 2002 Ove Kaaven @@ -19,7 +19,8 @@ */ %option stack -%option never-interactive +%option nounput noyy_top_state +%option 8bit never-interactive nl \r?\n ws [ \f\t\r] diff --git a/tools/wrc/Makefile.in b/tools/wrc/Makefile.in index 49c913e..f482be4 100644 --- a/tools/wrc/Makefile.in +++ b/tools/wrc/Makefile.in @@ -3,7 +3,6 @@ TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ -LEXOPT = -Cf #-w -b EXEEXT = @EXEEXT@ PROGRAMS = wrc$(EXEEXT) @@ -38,7 +37,7 @@ parser.tab.h: parser.tab.c parser.tab.o: parser.tab.h @LEX_OUTPUT_ROOT@.c: parser.l - $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l + $(LEX) $(SRCDIR)/parser.l @LEX_OUTPUT_ROOT@.o: parser.tab.h diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l index d8abcad..cbdf9b6 100644 --- a/tools/wrc/parser.l +++ b/tools/wrc/parser.l @@ -87,7 +87,8 @@ %x pp_code_page %option stack -%option never-interactive +%option nounput noyy_top_state +%option 8bit never-interactive /* Some shortcut definitions */ ws [ \f\t\r]
1
0
0
0
Mike McCormack : msi: Subclass the Richedit control.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 00a7faa3777ccb18b81b47c14df427f4f616b4a2 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=00a7faa3777ccb18b81b47c…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Jan 3 12:15:04 2006 +0100 msi: Subclass the Richedit control. Send a "DoAction" control event when the user scrolls the text. --- dlls/msi/dialog.c | 93 +++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 72 insertions(+), 21 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index ac10dc9..d7b3fdd 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -59,7 +59,6 @@ struct msi_control_tag HBITMAP hBitmap; HICON hIcon; LPWSTR tabnext; - HMODULE hDll; WCHAR name[1]; }; @@ -329,7 +328,6 @@ static msi_control *msi_dialog_create_wi control->value = NULL; control->hBitmap = NULL; control->hIcon = NULL; - control->hDll = NULL; control->tabnext = strdupW( MSI_RecordGetString( rec, 11) ); x = MSI_RecordGetInteger( rec, 4 ); @@ -695,6 +693,42 @@ static UINT msi_dialog_line_control( msi return ERROR_SUCCESS; } +/******************** Scroll Text ********************************************/ + +struct msi_scrolltext_info +{ + msi_dialog *dialog; + msi_control *control; + WNDPROC oldproc; + HMODULE hRichedit; +}; + +static LRESULT WINAPI +MSIScrollText_WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) +{ + struct msi_scrolltext_info *info; + HRESULT r; + + TRACE("%p %04x %08x %08lx\n", hWnd, msg, wParam, lParam); + + info = GetPropW( hWnd, szButtonData ); + + r = CallWindowProcW( info->oldproc, hWnd, msg, wParam, lParam ); + + switch( msg ) + { + case WM_NCDESTROY: + FreeLibrary( info->hRichedit ); + msi_free( info ); + RemovePropW( hWnd, szButtonData ); + break; + case WM_VSCROLL: + msi_dialog_button_handler( info->dialog, info->control, BN_CLICKED ); + break; + } + return r; +} + struct msi_streamin_info { LPSTR string; @@ -718,40 +752,59 @@ msi_richedit_stream_in( DWORD_PTR arg, L return 0; } +static void msi_scrolltext_add_text( msi_control *control, LPCWSTR text ) +{ + struct msi_streamin_info info; + EDITSTREAM es; + + info.string = strdupWtoA( text ); + info.offset = 0; + info.length = lstrlenA( info.string ) + 1; + + es.dwCookie = (DWORD_PTR) &info; + es.dwError = 0; + es.pfnCallback = msi_richedit_stream_in; + + SendMessageW( control->hwnd, EM_STREAMIN, SF_RTF, (LPARAM) &es ); + + msi_free( info.string ); +} + static UINT msi_dialog_scrolltext_control( msi_dialog *dialog, MSIRECORD *rec ) { static const WCHAR szRichEdit20W[] = { 'R','i','c','h','E','d','i','t','2','0','W',0 }; - struct msi_streamin_info info; + struct msi_scrolltext_info *info; msi_control *control; - LPCWSTR text; - EDITSTREAM es; DWORD style; - HMODULE hRichedit; - hRichedit = LoadLibraryA("riched20"); + info = msi_alloc( sizeof *info ); + if (!info) + return ERROR_FUNCTION_FAILED; + + info->hRichedit = LoadLibraryA("riched20"); style = WS_BORDER | ES_MULTILINE | WS_VSCROLL | ES_READONLY | ES_AUTOVSCROLL | WS_TABSTOP; control = msi_dialog_add_control( dialog, rec, szRichEdit20W, style ); if (!control) + { + FreeLibrary( info->hRichedit ); + msi_free( info ); return ERROR_FUNCTION_FAILED; + } - control->hDll = hRichedit; - - text = MSI_RecordGetString( rec, 10 ); - info.string = strdupWtoA( text ); - info.offset = 0; - info.length = lstrlenA( info.string ) + 1; - - es.dwCookie = (DWORD_PTR) &info; - es.dwError = 0; - es.pfnCallback = msi_richedit_stream_in; + info->dialog = dialog; + info->control = control; - SendMessageW( control->hwnd, EM_STREAMIN, SF_RTF, (LPARAM) &es ); + /* subclass the static control */ + info->oldproc = (WNDPROC) SetWindowLongPtrW( control->hwnd, GWLP_WNDPROC, + (LONG_PTR)MSIScrollText_WndProc ); + SetPropW( control->hwnd, szButtonData, info ); - msi_free( info.string ); + /* add the text into the richedit */ + msi_scrolltext_add_text( control, MSI_RecordGetString( rec, 10 ) ); return ERROR_SUCCESS; } @@ -2144,8 +2197,6 @@ void msi_dialog_destroy( msi_dialog *dia DestroyIcon( t->hIcon ); msi_free( t->tabnext ); msi_free( t ); - if (t->hDll) - FreeLibrary( t->hDll ); } /* destroy the list of fonts */
1
0
0
0
Mike McCormack : MSI: Improve the MsiGetMode stub a little.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: a0f88f7a3ec981e394b6e989d58e2e077d0ea731 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a0f88f7a3ec981e394b6e98…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Jan 3 12:12:15 2006 +0100 MSI: Improve the MsiGetMode stub a little. --- dlls/msi/install.c | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dlls/msi/install.c b/dlls/msi/install.c index b74d244..08b5f70 100644 --- a/dlls/msi/install.c +++ b/dlls/msi/install.c @@ -449,8 +449,31 @@ UINT WINAPI MsiSetTargetPathW(MSIHANDLE BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode) { - FIXME("STUB (iRunMode=%i)\n",iRunMode); - return TRUE; + BOOL r = FALSE; + + switch (iRunMode) + { + case MSIRUNMODE_WINDOWS9X: + if (GetVersion() & 0x80000000) + r = TRUE; + break; + + case MSIRUNMODE_RESERVED11: + case MSIRUNMODE_RESERVED14: + case MSIRUNMODE_RESERVED15: + break; + + case MSIRUNMODE_SCHEDULED: + case MSIRUNMODE_ROLLBACK: + case MSIRUNMODE_COMMIT: + break; + + default: + FIXME("%ld %d\n", hInstall, iRunMode); + r = TRUE; + } + + return r; } /***********************************************************************
1
0
0
0
Mike McCormack : msi: Implement the Reset control event.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 188365e2f02fb7c1572aa21689d94eba46d60136 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=188365e2f02fb7c1572aa21…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Jan 3 12:12:09 2006 +0100 msi: Implement the Reset control event. --- dlls/msi/dialog.c | 6 ++++++ dlls/msi/events.c | 8 ++++++++ dlls/msi/msipriv.h | 1 + 3 files changed, 15 insertions(+), 0 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index c4f9d2c..ac10dc9 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -1512,6 +1512,12 @@ static UINT msi_dialog_evaluate_control_ return r; } +UINT msi_dialog_reset( msi_dialog *dialog ) +{ + /* FIXME: should restore the original values of any properties we changed */ + return msi_dialog_evaluate_control_conditions( dialog ); +} + /* figure out the height of 10 point MS Sans Serif */ static INT msi_dialog_get_sans_serif_height( HWND hwnd ) { diff --git a/dlls/msi/events.c b/dlls/msi/events.c index 08a85c6..393154a 100644 --- a/dlls/msi/events.c +++ b/dlls/msi/events.c @@ -243,6 +243,13 @@ static UINT ControlEvent_SetTargetPath(M return r; } +static UINT ControlEvent_Reset(MSIPACKAGE* package, LPCWSTR argument, + msi_dialog* dialog) +{ + msi_dialog_reset(dialog); + return ERROR_SUCCESS; +} + /* * Subscribed events */ @@ -371,6 +378,7 @@ struct _events Events[] = { { "Remove",ControlEvent_Remove }, { "AddSource",ControlEvent_AddSource }, { "SetTargetPath",ControlEvent_SetTargetPath }, + { "Reset",ControlEvent_Reset }, { NULL,NULL }, }; diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 7649d39..cb64897 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -414,6 +414,7 @@ extern void msi_dialog_destroy( msi_dial extern BOOL msi_dialog_register_class( void ); extern void msi_dialog_unregister_class( void ); extern void msi_dialog_handle_event( msi_dialog*, LPCWSTR, LPCWSTR, MSIRECORD * ); +extern UINT msi_dialog_reset( msi_dialog *dialog ); /* preview */ extern MSIPREVIEW *MSI_EnableUIPreview( MSIDATABASE * );
1
0
0
0
Mike McCormack : oleaut32: Allow _invoke to handle up to 17 parameters.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 8193d97bfd3f98f2748659a2dd61af404cecbc79 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8193d97bfd3f98f2748659a…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Tue Jan 3 12:11:44 2006 +0100 oleaut32: Allow _invoke to handle up to 17 parameters. --- dlls/oleaut32/typelib.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index a3e9e86..af26fc8 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -4890,6 +4890,15 @@ _invoke(FARPROC func,CALLCONV callconv, case 14: res = func(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11],args[12],args[13]); break; + case 15: + res = func(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11],args[12],args[13],args[14]); + break; + case 16: + res = func(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11],args[12],args[13],args[14],args[15]); + break; + case 17: + res = func(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11],args[12],args[13],args[14],args[15],args[16]); + break; default: FIXME("unsupported number of arguments %d in stdcall\n",nrargs); res = -1;
1
0
0
0
Robert Reif : dsound Add uninitialized check.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 88ff4321643cb74877d18424b37d833d347cde79 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=88ff4321643cb74877d1842…
Author: Robert Reif <reif(a)earthlink.net> Date: Tue Jan 3 12:11:27 2006 +0100 dsound Add uninitialized check. --- dlls/dsound/dsound.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 0163f8a..02bf016 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -584,10 +584,16 @@ static HRESULT WINAPI IDirectSoundImpl_S IDirectSoundImpl *This = (IDirectSoundImpl *)iface; TRACE("(%p,%p,%s)\n",This,hwnd,dumpCooperativeLevel(level)); + if (This->device == NULL) { + WARN("not initialized\n"); + return DSERR_UNINITIALIZED; + } + if (level==DSSCL_PRIORITY || level==DSSCL_EXCLUSIVE) { WARN("level=%s not fully supported\n", level==DSSCL_PRIORITY ? "DSSCL_PRIORITY" : "DSSCL_EXCLUSIVE"); } + This->device->priolevel = level; return DS_OK; }
1
0
0
0
Vitaliy Margolen : comctl32: Listview - allow selection toggle with ctrl+space.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: a8e59b1c52866af35244b226b9fe98648cb3e6af URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a8e59b1c52866af35244b22…
Author: Vitaliy Margolen <wine-patch(a)kievinfo.com> Date: Tue Jan 3 12:11:18 2006 +0100 comctl32: Listview - allow selection toggle with ctrl+space. --- dlls/comctl32/listview.c | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 3cb5137..4b95caf 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -3173,6 +3173,7 @@ static BOOL LISTVIEW_KeySelection(LISTVI WORD wCtrl = HIWORD(GetKeyState(VK_CONTROL)); BOOL bResult = FALSE; + TRACE("nItem=%d, wShift=%d, wCtrl=%d\n", nItem, wShift, wCtrl); if ((nItem >= 0) && (nItem < infoPtr->nItemCount)) { if (infoPtr->dwStyle & LVS_SINGLESEL) @@ -3189,6 +3190,14 @@ static BOOL LISTVIEW_KeySelection(LISTVI } else if (wCtrl) { + LVITEMW lvItem; + lvItem.state = ~LISTVIEW_GetItemState(infoPtr, nItem, LVIS_SELECTED); + lvItem.stateMask = LVIS_SELECTED; + LISTVIEW_SetItemState(infoPtr, nItem, &lvItem); + + if (lvItem.state & LVIS_SELECTED) + infoPtr->nSelectionMark = nItem; + bResult = LISTVIEW_SetItemFocus(infoPtr, nItem); } else @@ -8016,6 +8025,10 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW switch (nVirtualKey) { + case VK_SPACE: + nItem = infoPtr->nFocusedItem; + break; + case VK_RETURN: if ((infoPtr->nItemCount > 0) && (infoPtr->nFocusedItem != -1)) { @@ -8082,7 +8095,7 @@ static LRESULT LISTVIEW_KeyDown(LISTVIEW break; } - if ((nItem != -1) && (nItem != infoPtr->nFocusedItem)) + if ((nItem != -1) && (nItem != infoPtr->nFocusedItem || nVirtualKey == VK_SPACE)) LISTVIEW_KeySelection(infoPtr, nItem); return 0;
1
0
0
0
← Newer
1
...
57
58
59
60
61
62
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
Results per page:
10
25
50
100
200