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
September 2012
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
828 discussions
Start a n
N
ew thread
Alexandre Julliard : winex11: Add window data structure locking to the SysCommand entry point.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 803fc6e27c2507a2cefe57d53bdbaab1770f3854 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=803fc6e27c2507a2cefe57d53…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 13:41:20 2012 +0200 winex11: Add window data structure locking to the SysCommand entry point. --- dlls/winex11.drv/window.c | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 4ff3678..66588d1 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -2397,8 +2397,8 @@ LRESULT CDECL X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) int dir; struct x11drv_win_data *data; - if (!(data = X11DRV_get_win_data( hwnd ))) return -1; - if (!data->whole_window || !data->managed || !data->mapped) return -1; + if (!(data = get_win_data( hwnd ))) return -1; + if (!data->whole_window || !data->managed || !data->mapped) goto failed; switch (wparam & 0xfff0) { @@ -2408,7 +2408,7 @@ LRESULT CDECL X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) break; case SC_SIZE: /* windows without WS_THICKFRAME are not resizable through the window manager */ - if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_THICKFRAME)) return -1; + if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_THICKFRAME)) goto failed; switch (hittest) { @@ -2427,24 +2427,30 @@ LRESULT CDECL X11DRV_SysCommand( HWND hwnd, WPARAM wparam, LPARAM lparam ) case SC_KEYMENU: /* prevent a simple ALT press+release from activating the system menu, * as that can get confusing on managed windows */ - if ((WCHAR)lparam) return -1; /* got an explicit char */ - if (GetMenu( hwnd )) return -1; /* window has a real menu */ - if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_SYSMENU)) return -1; /* no system menu */ + if ((WCHAR)lparam) goto failed; /* got an explicit char */ + if (GetMenu( hwnd )) goto failed; /* window has a real menu */ + if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_SYSMENU)) goto failed; /* no system menu */ TRACE( "ignoring SC_KEYMENU wp %lx lp %lx\n", wparam, lparam ); + release_win_data( data ); return 0; default: - return -1; + goto failed; } - if (IsZoomed(hwnd)) return -1; + if (IsZoomed(hwnd)) goto failed; if (!is_netwm_supported( data->display, x11drv_atom(_NET_WM_MOVERESIZE) )) { TRACE( "_NET_WM_MOVERESIZE not supported\n" ); - return -1; + goto failed; } + release_win_data( data ); move_resize_window( hwnd, dir ); return 0; + +failed: + release_win_data( data ); + return -1; }
1
0
0
0
Alexandre Julliard : winex11: Add window data structure locking to the ShowWindow entry point.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 6a9f5e18d1e95979ad308c4d67182d46950b207a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6a9f5e18d1e95979ad308c4d6…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 13:36:35 2012 +0200 winex11: Add window data structure locking to the ShowWindow entry point. --- dlls/winex11.drv/window.c | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 931f60e..4ff3678 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -2208,20 +2208,20 @@ UINT CDECL X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp ) Window root, top; DWORD style = GetWindowLongW( hwnd, GWL_STYLE ); struct x11drv_thread_data *thread_data = x11drv_thread_data(); - struct x11drv_win_data *data = X11DRV_get_win_data( hwnd ); + struct x11drv_win_data *data = get_win_data( hwnd ); - if (!data || !data->whole_window || !data->managed || !data->mapped || data->iconic) return swp; - if (style & WS_MINIMIZE) return swp; - if (IsRectEmpty( rect )) return swp; + if (!data || !data->whole_window || !data->managed || !data->mapped || data->iconic) goto done; + if (style & WS_MINIMIZE) goto done; + if (IsRectEmpty( rect )) goto done; /* only fetch the new rectangle if the ShowWindow was a result of a window manager event */ if (!thread_data->current_event || thread_data->current_event->xany.window != data->whole_window) - return swp; + goto done; if (thread_data->current_event->type != ConfigureNotify && thread_data->current_event->type != PropertyNotify) - return swp; + goto done; TRACE( "win %p/%lx cmd %d at %s flags %08x\n", hwnd, data->whole_window, cmd, wine_dbgstr_rect(rect), swp ); @@ -2235,7 +2235,11 @@ UINT CDECL X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp ) rect->bottom = y + height; OffsetRect( rect, virtual_screen_rect.left, virtual_screen_rect.top ); X11DRV_X_to_window_rect( data, rect ); - return swp & ~(SWP_NOMOVE | SWP_NOCLIENTMOVE | SWP_NOSIZE | SWP_NOCLIENTSIZE); + swp &= ~(SWP_NOMOVE | SWP_NOCLIENTMOVE | SWP_NOSIZE | SWP_NOCLIENTSIZE); + +done: + release_win_data( data ); + return swp; }
1
0
0
0
Dmitry Timoshkov : gdiplus: Make GIF palettes in a custom test image slightly more different.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 5f9be70570c756b27b78a34caf9e30a7f146d38d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5f9be70570c756b27b78a34ca…
Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Mon Sep 24 16:05:45 2012 +0900 gdiplus: Make GIF palettes in a custom test image slightly more different. --- dlls/gdiplus/tests/image.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c index 59a5064..b792ebe 100644 --- a/dlls/gdiplus/tests/image.c +++ b/dlls/gdiplus/tests/image.c @@ -3922,7 +3922,7 @@ static void test_DrawImage_scale(void) static const BYTE animatedgif[] = { 'G','I','F','8','9','a',0x01,0x00,0x01,0x00,0xA1,0x02,0x00, -0x6F,0x6F,0x6F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, +0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c, /*0x21,0xFF,0x0B,'A','N','I','M','E','X','T','S','1','.','0',*/ 0x21,0xFF,0x0B,'N','E','T','S','C','A','P','E','2','.','0', 0x03,0x01,0x05,0x00,0x00, @@ -3930,14 +3930,14 @@ static const BYTE animatedgif[] = { 0x21,0x01,0x0D,'a','n','i','m','a','t','i','o','n','.','g','i','f',0x00, 0x21,0xF9,0x04,0xff,0x0A,0x00,0x08,0x00, 0x2C,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x81, -0xDE,0xDE,0xDE,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x02,0x4C,0x01,0x00, +0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac, +0x02,0x02,0x4C,0x01,0x00, 0x21,0xFE,0x08,'i','m','a','g','e',' ','#','1',0x00, 0x21,0x01,0x0C,'p','l','a','i','n','t','e','x','t',' ','#','1',0x00, 0x21,0xF9,0x04,0x00,0x14,0x00,0x01,0x00, 0x2C,0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x81, -0x4D,0x4D,0x4D,0x00,0x00,0x00, -0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x02,0x44,0x01,0x00, +0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc, +0x02,0x02,0x44,0x01,0x00, 0x21,0xFE,0x08,'i','m','a','g','e',' ','#','2',0x00, 0x21,0x01,0x0C,'p','l','a','i','n','t','e','x','t',' ','#','2',0x00,0x3B }; @@ -3953,7 +3953,7 @@ static void test_gif_properties(void) { PropertyTagTypeLong, PropertyTagFrameDelay, 8, { 10,0,0,0,20,0,0,0 } }, { PropertyTagTypeASCII, PropertyTagExifUserComment, 13, { 'H','e','l','l','o',' ','W','o','r','l','d','!',0 } }, { PropertyTagTypeShort, PropertyTagLoopCount, 2, { 5,0 } }, - { PropertyTagTypeByte, PropertyTagGlobalPalette, 12, { 0x6f,0x6f,0x6f,0,0,0,0,0,0,0,0,0 } }, + { PropertyTagTypeByte, PropertyTagGlobalPalette, 12, { 0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c } }, { PropertyTagTypeByte, PropertyTagIndexBackground, 1, { 2 } }, { PropertyTagTypeByte, PropertyTagIndexTransparent, 1, { 8 } } };
1
0
0
0
Thomas Faber : rpcrt4: Match MSVC version of call_server_func with GCC.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 25b76525f3f6edfcf630f235ccf15e395d009e87 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=25b76525f3f6edfcf630f235c…
Author: Thomas Faber <thfabba(a)gmx.de> Date: Sat Sep 22 12:38:11 2012 +0200 rpcrt4: Match MSVC version of call_server_func with GCC. --- dlls/rpcrt4/ndr_stubless.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/rpcrt4/ndr_stubless.c b/dlls/rpcrt4/ndr_stubless.c index db41a1a..d7a81bd 100644 --- a/dlls/rpcrt4/ndr_stubless.c +++ b/dlls/rpcrt4/ndr_stubless.c @@ -990,11 +990,12 @@ __declspec(naked) LONG_PTR __cdecl call_server_func(SERVER_ROUTINE func, unsigne __asm { push ebp + mov ebp, esp push edi ; Save registers push esi - mov ebp, esp mov eax, [ebp+16] ; Get stack size sub esp, eax ; Make room in stack for arguments + and esp, 0xFFFFFFF0 mov edi, esp mov ecx, eax mov esi, [ebp+12]
1
0
0
0
Alistair Leslie-Hughes : scrrun: Silence unknown interfaces.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 5912bdeec2ec191a066e7b238e83eb7672f2ffe5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5912bdeec2ec191a066e7b238…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Fri Sep 21 13:29:02 2012 +1000 scrrun: Silence unknown interfaces. --- dlls/scrrun/dictionary.c | 2 +- dlls/scrrun/scrrun.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/scrrun/dictionary.c b/dlls/scrrun/dictionary.c index a02c957..7664af8 100644 --- a/dlls/scrrun/dictionary.c +++ b/dlls/scrrun/dictionary.c @@ -70,7 +70,7 @@ static HRESULT WINAPI dictionary_QueryInterface(IDictionary *iface, REFIID riid, } else { - FIXME("interface %s not implemented\n", debugstr_guid(riid)); + WARN("interface %s not implemented\n", debugstr_guid(riid)); return E_NOINTERFACE; } diff --git a/dlls/scrrun/scrrun.c b/dlls/scrrun/scrrun.c index 932d124..cd07027 100644 --- a/dlls/scrrun/scrrun.c +++ b/dlls/scrrun/scrrun.c @@ -54,7 +54,7 @@ static HRESULT WINAPI scrruncf_QueryInterface(IClassFactory *iface, REFIID riid, return S_OK; } - FIXME("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv); + WARN("(%p)->(%s %p)\n", iface, debugstr_guid(riid), ppv); return E_NOINTERFACE; }
1
0
0
0
Alistair Leslie-Hughes : oledb32: Add IDataInitialize interface support.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 0fd6649988b72837d17de7fe28d10ec967cde801 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0fd6649988b72837d17de7fe2…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon Sep 24 14:20:13 2012 +1000 oledb32: Add IDataInitialize interface support. --- dlls/oledb32/Makefile.in | 1 + dlls/oledb32/datainit.c | 193 ++++++++++++++++++++++++++++++++++++++++++ dlls/oledb32/main.c | 7 ++ dlls/oledb32/oledb_private.h | 1 + 4 files changed, 202 insertions(+), 0 deletions(-) diff --git a/dlls/oledb32/Makefile.in b/dlls/oledb32/Makefile.in index 5c66a2c..71e352b 100644 --- a/dlls/oledb32/Makefile.in +++ b/dlls/oledb32/Makefile.in @@ -4,6 +4,7 @@ IMPORTS = uuid oleaut32 ole32 user32 advapi32 C_SRCS = \ convert.c \ + datainit.c \ main.c IDL_I_SRCS = convert.idl diff --git a/dlls/oledb32/datainit.c b/dlls/oledb32/datainit.c new file mode 100644 index 0000000..af596fe --- /dev/null +++ b/dlls/oledb32/datainit.c @@ -0,0 +1,193 @@ +/* + * Copyright (C) 2012 Alistair Leslie-Hughes + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ +#include <stdarg.h> + +#define COBJMACROS +#define NONAMELESSUNION +#define NONAMELESSSTRUCT + +#include "windef.h" +#include "winbase.h" +#include "winnls.h" +#include "ole2.h" +#include "msdasc.h" +#include "oledberr.h" + +#include "oledb_private.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(oledb); + + +typedef struct datainit +{ + IDataInitialize IDataInitialize_iface; + + LONG ref; +} datainit; + +static inline datainit *impl_from_IDataInitialize(IDataInitialize *iface) +{ + return CONTAINING_RECORD(iface, datainit, IDataInitialize_iface); +} + +static HRESULT WINAPI datainit_QueryInterface(IDataInitialize *iface, REFIID riid, void **obj) +{ + datainit *This = impl_from_IDataInitialize(iface); + TRACE("(%p)->(%s, %p)\n", This, debugstr_guid(riid), obj); + + *obj = NULL; + + if(IsEqualIID(riid, &IID_IUnknown) || + IsEqualIID(riid, &IID_IDataInitialize)) + { + *obj = &This->IDataInitialize_iface; + } + else + { + FIXME("interface %s not implemented\n", debugstr_guid(riid)); + return E_NOINTERFACE; + } + + IDataInitialize_AddRef(iface); + return S_OK; +} + +static ULONG WINAPI datainit_AddRef(IDataInitialize *iface) +{ + datainit *This = impl_from_IDataInitialize(iface); + TRACE("(%p)\n", This); + + return InterlockedIncrement(&This->ref); +} + +static ULONG WINAPI datainit_Release(IDataInitialize *iface) +{ + datainit *This = impl_from_IDataInitialize(iface); + LONG ref; + + TRACE("(%p)\n", This); + + ref = InterlockedDecrement(&This->ref); + if(ref == 0) + { + HeapFree(GetProcessHeap(), 0, This); + } + + return ref; +} + +/*** IDataInitialize methods ***/ +static HRESULT WINAPI datainit_GetDataSource(IDataInitialize *iface, IUnknown *pUnkOuter, DWORD dwClsCtx, + LPWSTR pwszInitializationString, REFIID riid, IUnknown **ppDataSource) +{ + datainit *This = impl_from_IDataInitialize(iface); + + FIXME("(%p)->(%p %d %s %s %p)\n", This, pUnkOuter, dwClsCtx, debugstr_w(pwszInitializationString), + debugstr_guid(riid), ppDataSource); + + return E_NOTIMPL; +} + +static HRESULT WINAPI datainit_GetInitializationString(IDataInitialize *iface, IUnknown *pDataSource, + boolean fIncludePassword, LPWSTR *ppwszInitString) +{ + datainit *This = impl_from_IDataInitialize(iface); + + FIXME("(%p)->(%p %d %p)\n", This, pDataSource, fIncludePassword, ppwszInitString); + + return E_NOTIMPL; +} + +static HRESULT WINAPI datainit_CreateDBInstance(IDataInitialize *iface, REFCLSID clsidProvider, + IUnknown *pUnkOuter, DWORD dwClsCtx, LPWSTR pwszReserved, REFIID riid, + IUnknown **ppDataSource) +{ + datainit *This = impl_from_IDataInitialize(iface); + + FIXME("(%p)->()\n", This); + + return E_NOTIMPL; +} + +static HRESULT WINAPI datainit_RemoteCreateDBInstanceEx(IDataInitialize *iface, REFCLSID clsidProvider, + IUnknown *pUnkOuter, DWORD dwClsCtx, LPWSTR pwszReserved, COSERVERINFO *pServerInfo, + DWORD cmq, GUID **rgpIID, IUnknown **rgpItf, HRESULT *rghr) +{ + datainit *This = impl_from_IDataInitialize(iface); + + FIXME("(%p)->()\n", This); + + return E_NOTIMPL; +} + +static HRESULT WINAPI datainit_LoadStringFromStorage(IDataInitialize *iface, LPWSTR pwszFileName, + LPWSTR *ppwszInitializationString) +{ + datainit *This = impl_from_IDataInitialize(iface); + + FIXME("(%p)->(%s %p)\n", This, debugstr_w(pwszFileName), ppwszInitializationString); + + return E_NOTIMPL; +} + +static HRESULT WINAPI datainit_WriteStringToStorage(IDataInitialize *iface, LPWSTR pwszFileName, + LPWSTR pwszInitializationString, DWORD dwCreationDisposition) +{ + datainit *This = impl_from_IDataInitialize(iface); + + FIXME("(%p)->(%s %s %d)\n", This, debugstr_w(pwszFileName), debugstr_w(pwszInitializationString), dwCreationDisposition); + + return E_NOTIMPL; +} + + +static const struct IDataInitializeVtbl datainit_vtbl = +{ + datainit_QueryInterface, + datainit_AddRef, + datainit_Release, + datainit_GetDataSource, + datainit_GetInitializationString, + datainit_CreateDBInstance, + datainit_RemoteCreateDBInstanceEx, + datainit_LoadStringFromStorage, + datainit_WriteStringToStorage +}; + +HRESULT create_data_init(IUnknown *outer, void **obj) +{ + datainit *This; + + TRACE("(%p)\n", obj); + + if(outer) return CLASS_E_NOAGGREGATION; + + *obj = NULL; + + This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This)); + if(!This) return E_OUTOFMEMORY; + + This->IDataInitialize_iface.lpVtbl = &datainit_vtbl; + This->ref = 1; + + *obj = &This->IDataInitialize_iface; + + return S_OK; +} diff --git a/dlls/oledb32/main.c b/dlls/oledb32/main.c index af81d77..e8a1d46 100644 --- a/dlls/oledb32/main.c +++ b/dlls/oledb32/main.c @@ -27,6 +27,7 @@ #include "winbase.h" #include "ole2.h" #include "rpcproxy.h" +#include "msdasc.h" #include "initguid.h" #include "msdaguid.h" @@ -127,6 +128,7 @@ static const IClassFactoryVtbl CF_Vtbl = }; static cf oledb_convert_cf = { { &CF_Vtbl }, create_oledb_convert }; +static cf oledb_datainit_cf = { { &CF_Vtbl }, create_data_init }; /****************************************************************** * DllGetClassObject @@ -140,6 +142,11 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **obj) *obj = &oledb_convert_cf; return S_OK; } + else if ( IsEqualCLSID (rclsid, &CLSID_MSDAINITIALIZE) ) + { + *obj = &oledb_datainit_cf; + return S_OK; + } return CLASS_E_CLASSNOTAVAILABLE; } diff --git a/dlls/oledb32/oledb_private.h b/dlls/oledb32/oledb_private.h index a79d251..ad5d67f 100644 --- a/dlls/oledb32/oledb_private.h +++ b/dlls/oledb32/oledb_private.h @@ -18,3 +18,4 @@ */ HRESULT create_oledb_convert(IUnknown *outer, void **obj) DECLSPEC_HIDDEN; +HRESULT create_data_init(IUnknown *outer, void **obj) DECLSPEC_HIDDEN;
1
0
0
0
Alistair Leslie-Hughes : uuid: Add msdasc.h.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: eda7615d699eb01a73e7bf7e30b12b7e804459e5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eda7615d699eb01a73e7bf7e3…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Mon Sep 24 13:44:00 2012 +1000 uuid: Add msdasc.h. --- dlls/uuid/uuid.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/uuid/uuid.c b/dlls/uuid/uuid.c index cae55c7..fd96fe3 100644 --- a/dlls/uuid/uuid.c +++ b/dlls/uuid/uuid.c @@ -84,6 +84,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); #include "ocmm.h" #include "commoncontrols.h" #include "tlogstg.h" +#include "msdasc.h" /* FIXME: cguids declares GUIDs but does not define their values */
1
0
0
0
Nikolay Sivov : mlang: Implement get source/ dest codepages for IMLangConvertCharset.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: 031f3ca16714b78e7586efdd92890f8f5cc2bf2d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=031f3ca16714b78e7586efdd9…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Sep 24 12:06:28 2012 +0400 mlang: Implement get source/dest codepages for IMLangConvertCharset. --- dlls/mlang/mlang.c | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c index 388b99c..caae2c2 100644 --- a/dlls/mlang/mlang.c +++ b/dlls/mlang/mlang.c @@ -3632,15 +3632,21 @@ static HRESULT WINAPI MLangConvertCharset_Initialize(IMLangConvertCharset *iface static HRESULT WINAPI MLangConvertCharset_GetSourceCodePage(IMLangConvertCharset *iface, UINT *src_cp) { struct convert_charset *This = impl_from_IMLangConvertCharset(iface); - FIXME("(%p)->(%p): stub\n", This, src_cp); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, src_cp); + + *src_cp = This->src_cp; + return S_OK; } static HRESULT WINAPI MLangConvertCharset_GetDestinationCodePage(IMLangConvertCharset *iface, UINT *dst_cp) { struct convert_charset *This = impl_from_IMLangConvertCharset(iface); - FIXME("(%p)->(%p): stub\n", This, dst_cp); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, dst_cp); + + *dst_cp = This->dst_cp; + return S_OK; } static HRESULT WINAPI MLangConvertCharset_GetProperty(IMLangConvertCharset *iface, DWORD *prop)
1
0
0
0
Nikolay Sivov : mlang: Store source and destination codepage ids in IMLangConvertCharset_Initialize .
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: ed42bf08dbd5077adf0db2ea6468f7f27cd9c418 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ed42bf08dbd5077adf0db2ea6…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Sep 24 01:15:11 2012 +0400 mlang: Store source and destination codepage ids in IMLangConvertCharset_Initialize. --- dlls/mlang/mlang.c | 15 +++++++++++++-- include/mlang.idl | 11 +++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c index b5fd0eb..388b99c 100644 --- a/dlls/mlang/mlang.c +++ b/dlls/mlang/mlang.c @@ -3563,6 +3563,9 @@ static const IMLangLineBreakConsoleVtbl IMLangLineBreakConsole_vtbl = struct convert_charset { IMLangConvertCharset IMLangConvertCharset_iface; LONG ref; + + UINT src_cp; + UINT dst_cp; }; static inline struct convert_charset *impl_from_IMLangConvertCharset(IMLangConvertCharset *iface) @@ -3614,8 +3617,16 @@ static HRESULT WINAPI MLangConvertCharset_Initialize(IMLangConvertCharset *iface UINT src_cp, UINT dst_cp, DWORD prop) { struct convert_charset *This = impl_from_IMLangConvertCharset(iface); - FIXME("(%p)->(%u %u 0x%08x): stub\n", This, src_cp, dst_cp, prop); - return E_NOTIMPL; + + TRACE("(%p)->(%u %u 0x%08x)\n", This, src_cp, dst_cp, prop); + + if (prop) + FIXME("property 0x%08x not supported\n", prop); + + This->src_cp = src_cp; + This->dst_cp = dst_cp; + + return S_OK; } static HRESULT WINAPI MLangConvertCharset_GetSourceCodePage(IMLangConvertCharset *iface, UINT *src_cp) diff --git a/include/mlang.idl b/include/mlang.idl index 7cdc970..e153565 100644 --- a/include/mlang.idl +++ b/include/mlang.idl @@ -375,6 +375,17 @@ interface IEnumCodePage : IUnknown ] interface IMLangConvertCharset : IUnknown { + typedef enum tagMLCONVCHARF + { + MLCONVCHARF_AUTODETECT = 1, + MLCONVCHARF_ENTITIZE = 2, + MLCONVCHARF_NCR_ENTITIZE = 2, + MLCONVCHARF_NAME_ENTITIZE = 4, + MLCONVCHARF_USEDEFCHAR = 8, + MLCONVCHARF_NOBESTFITCHARS = 16, + MLCONVCHARF_DETECTJPN = 32 + } MLCONVCHAR; + HRESULT Initialize( [in] UINT uiSrcCodePage, [in] UINT uiDstCodePage,
1
0
0
0
Nikolay Sivov : mlang: Added IMLangConvertCharset stub.
by Alexandre Julliard
24 Sep '12
24 Sep '12
Module: wine Branch: master Commit: f5edf34c6cae2feb4626298182f24e1729b9fb24 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f5edf34c6cae2feb462629818…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon Sep 24 00:01:55 2012 +0400 mlang: Added IMLangConvertCharset stub. --- dlls/mlang/mlang.c | 171 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 159 insertions(+), 12 deletions(-) diff --git a/dlls/mlang/mlang.c b/dlls/mlang/mlang.c index e9f48a0..b5fd0eb 100644 --- a/dlls/mlang/mlang.c +++ b/dlls/mlang/mlang.c @@ -47,6 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mlang); #define CP_UNICODE 1200 static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj); +static HRESULT MLangConvertCharset_create(IUnknown *outer, void **obj); static HRESULT EnumRfc1766_create(LANGID LangId, IEnumRfc1766 **ppEnum); static HINSTANCE instance; @@ -1297,6 +1298,7 @@ struct object_creation_info static const struct object_creation_info object_creation[] = { { &CLSID_CMultiLanguage, "CLSID_CMultiLanguage", MultiLanguage_create }, + { &CLSID_CMLangConvertCharset, "CLSID_CMLangConvertCharset", MLangConvertCharset_create } }; static HRESULT WINAPI MLANGCF_QueryInterface(IClassFactory *iface, REFIID riid, void **ppobj) @@ -2583,13 +2585,13 @@ static HRESULT WINAPI fnIMultiLanguage_GetRfc1766Info( static HRESULT WINAPI fnIMultiLanguage_CreateConvertCharset( IMultiLanguage* iface, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset) + UINT src_cp, + UINT dst_cp, + DWORD prop, + IMLangConvertCharset** convert_charset) { - FIXME("\n"); - return E_NOTIMPL; + MLang_impl *This = impl_from_IMultiLanguage(iface); + return IMultiLanguage3_CreateConvertCharset(&This->IMultiLanguage3_iface, src_cp, dst_cp, prop, convert_charset); } static const IMultiLanguageVtbl IMultiLanguage_vtbl = @@ -2955,13 +2957,19 @@ static HRESULT WINAPI fnIMultiLanguage2_GetRfc1766Info( static HRESULT WINAPI fnIMultiLanguage2_CreateConvertCharset( IMultiLanguage3* iface, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset) + UINT src_cp, + UINT dst_cp, + DWORD prop, + IMLangConvertCharset** convert_charset) { - FIXME("\n"); - return E_NOTIMPL; + HRESULT hr; + + TRACE("(%u %u 0x%08x %p)\n", src_cp, dst_cp, prop, convert_charset); + + hr = MLangConvertCharset_create(NULL, (void**)convert_charset); + if (FAILED(hr)) return hr; + + return IMLangConvertCharset_Initialize(*convert_charset, src_cp, dst_cp, prop); } static HRESULT WINAPI fnIMultiLanguage2_ConvertStringInIStream( @@ -3552,6 +3560,123 @@ static const IMLangLineBreakConsoleVtbl IMLangLineBreakConsole_vtbl = fnIMLangLineBreakConsole_BreakLineA }; +struct convert_charset { + IMLangConvertCharset IMLangConvertCharset_iface; + LONG ref; +}; + +static inline struct convert_charset *impl_from_IMLangConvertCharset(IMLangConvertCharset *iface) +{ + return CONTAINING_RECORD(iface, struct convert_charset, IMLangConvertCharset_iface); +} + +static HRESULT WINAPI MLangConvertCharset_QueryInterface(IMLangConvertCharset *iface, REFIID riid, void **obj) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + + TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), obj); + + if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IMLangConvertCharset)) + { + *obj = &This->IMLangConvertCharset_iface; + IMLangConvertCharset_AddRef(iface); + return S_OK; + } + + *obj = NULL; + return E_NOINTERFACE; +} + +static ULONG WINAPI MLangConvertCharset_AddRef(IMLangConvertCharset *iface) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + ULONG ref = InterlockedIncrement(&This->ref); + TRACE("(%p)->(%u)\n", This, ref); + return ref; +} + +static ULONG WINAPI MLangConvertCharset_Release(IMLangConvertCharset *iface) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + ULONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p)->(%u)\n", This, ref); + if (!ref) + { + HeapFree(GetProcessHeap(), 0, This); + UnlockModule(); + } + + return ref; +} + +static HRESULT WINAPI MLangConvertCharset_Initialize(IMLangConvertCharset *iface, + UINT src_cp, UINT dst_cp, DWORD prop) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%u %u 0x%08x): stub\n", This, src_cp, dst_cp, prop); + return E_NOTIMPL; +} + +static HRESULT WINAPI MLangConvertCharset_GetSourceCodePage(IMLangConvertCharset *iface, UINT *src_cp) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%p): stub\n", This, src_cp); + return E_NOTIMPL; +} + +static HRESULT WINAPI MLangConvertCharset_GetDestinationCodePage(IMLangConvertCharset *iface, UINT *dst_cp) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%p): stub\n", This, dst_cp); + return E_NOTIMPL; +} + +static HRESULT WINAPI MLangConvertCharset_GetProperty(IMLangConvertCharset *iface, DWORD *prop) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%p): stub\n", This, prop); + return E_NOTIMPL; +} + +static HRESULT WINAPI MLangConvertCharset_DoConversion(IMLangConvertCharset *iface, BYTE *src, + UINT *src_size, BYTE *dest, UINT *dest_size) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%p %p %p %p): stub\n", This, src, src_size, dest, dest_size); + return E_NOTIMPL; +} + +static HRESULT WINAPI MLangConvertCharset_DoConversionToUnicode(IMLangConvertCharset *iface, CHAR *src, + UINT *src_size, WCHAR *dest, UINT *dest_size) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%p %p %p %p): stub\n", This, src, src_size, dest, dest_size); + return E_NOTIMPL; +} + +static HRESULT WINAPI MLangConvertCharset_DoConversionFromUnicode(IMLangConvertCharset *iface, + WCHAR *src, UINT *src_size, CHAR *dest, UINT *dest_size) +{ + struct convert_charset *This = impl_from_IMLangConvertCharset(iface); + FIXME("(%p)->(%p %p %p %p): stub\n", This, src, src_size, dest, dest_size); + return E_NOTIMPL; +} + +static const IMLangConvertCharsetVtbl MLangConvertCharsetVtbl = +{ + MLangConvertCharset_QueryInterface, + MLangConvertCharset_AddRef, + MLangConvertCharset_Release, + MLangConvertCharset_Initialize, + MLangConvertCharset_GetSourceCodePage, + MLangConvertCharset_GetDestinationCodePage, + MLangConvertCharset_GetProperty, + MLangConvertCharset_DoConversion, + MLangConvertCharset_DoConversionToUnicode, + MLangConvertCharset_DoConversionFromUnicode +}; + static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj) { MLang_impl *mlang; @@ -3585,6 +3710,28 @@ static HRESULT MultiLanguage_create(IUnknown *pUnkOuter, LPVOID *ppObj) return S_OK; } +static HRESULT MLangConvertCharset_create(IUnknown *outer, void **obj) +{ + struct convert_charset *convert; + + if (outer) + return CLASS_E_NOAGGREGATION; + + *obj = NULL; + + convert = HeapAlloc(GetProcessHeap(), 0, sizeof(struct convert_charset)); + if (!convert) return E_OUTOFMEMORY; + + convert->IMLangConvertCharset_iface.lpVtbl = &MLangConvertCharsetVtbl; + convert->ref = 1; + + *obj = &convert->IMLangConvertCharset_iface; + + LockModule(); + + return S_OK; +} + /******************************************************************************/ HRESULT WINAPI DllCanUnloadNow(void)
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
83
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
Results per page:
10
25
50
100
200