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
June 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
3 participants
854 discussions
Start a n
N
ew thread
Huw Davies : opengl32: Fix the returned metrics and add a translation vector to the end of each list .
by Alexandre Julliard
28 Jun '06
28 Jun '06
Module: wine Branch: refs/heads/master Commit: ac5a024a5cceaa232ecab08c4454e79b678dfafe URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=ac5a024a5cceaa232ecab08…
Author: Huw Davies <huw(a)codeweavers.com> Date: Mon Jun 26 12:12:54 2006 +0100 opengl32: Fix the returned metrics and add a translation vector to the end of each list. --- dlls/opengl32/wgl.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 2dd59a8..178cb6b 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -991,12 +991,13 @@ BOOL WINAPI wglUseFontOutlines_common(HD if(lpgmf) { - lpgmf->gmfBlackBoxX = gm.gmBlackBoxX / em_size; - lpgmf->gmfBlackBoxY = gm.gmBlackBoxY / em_size; - lpgmf->gmfptGlyphOrigin.x = gm.gmptGlyphOrigin.x / em_size; - lpgmf->gmfptGlyphOrigin.y = gm.gmptGlyphOrigin.y / em_size; - lpgmf->gmfCellIncX = gm.gmCellIncX / em_size; - lpgmf->gmfCellIncY = gm.gmCellIncY / em_size; + lpgmf->gmfBlackBoxX = (float)gm.gmBlackBoxX / em_size; + lpgmf->gmfBlackBoxY = (float)gm.gmBlackBoxY / em_size; + lpgmf->gmfptGlyphOrigin.x = (float)gm.gmptGlyphOrigin.x / em_size; + lpgmf->gmfptGlyphOrigin.y = (float)gm.gmptGlyphOrigin.y / em_size; + lpgmf->gmfCellIncX = (float)gm.gmCellIncX / em_size; + lpgmf->gmfCellIncY = (float)gm.gmCellIncY / em_size; + TRACE("%fx%f at %f,%f inc %f,%f\n", lpgmf->gmfBlackBoxX, lpgmf->gmfBlackBoxY, lpgmf->gmfptGlyphOrigin.x, lpgmf->gmfptGlyphOrigin.y, lpgmf->gmfCellIncX, lpgmf->gmfCellIncY); lpgmf++; @@ -1063,6 +1064,7 @@ BOOL WINAPI wglUseFontOutlines_common(HD error_in_list: gluTessEndPolygon(tess); + glTranslated((GLdouble)gm.gmCellIncX / em_size, (GLdouble)gm.gmCellIncY / em_size, 0.0); glEndList(); LEAVE_GL(); HeapFree(GetProcessHeap(), 0, buf);
1
0
0
0
Alexandre Julliard : server: Moved get/ set_thread_context implementation to ptrace.c.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: 498742ff6cee580a82a42d5f05e8c570b4b71dc5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=498742ff6cee580a82a42d5…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jun 27 21:27:47 2006 +0200 server: Moved get/set_thread_context implementation to ptrace.c. --- server/context_alpha.c | 26 +---- server/context_i386.c | 210 ------------------------------------------ server/context_powerpc.c | 26 +---- server/context_sparc.c | 24 +---- server/context_x86_64.c | 187 ------------------------------------- server/ptrace.c | 231 ++++++++++++++++++++++++++++++++++++++++++---- server/thread.h | 3 - 7 files changed, 226 insertions(+), 481 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=498742ff6cee580a82a…
1
0
0
0
Ivan Leo : msvcrt/tests: Don't leave files on the disk.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: f2bfc7b12d0461505edb3eaef8fca82d173cf902 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f2bfc7b12d0461505edb3ea…
Author: Ivan Leo <ivanleo(a)gmail.com> Date: Tue Jun 27 16:05:14 2006 +0100 msvcrt/tests: Don't leave files on the disk. --- dlls/msvcrt/tests/file.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c index 61a4db9..1c0f155 100644 --- a/dlls/msvcrt/tests/file.c +++ b/dlls/msvcrt/tests/file.c @@ -472,14 +472,14 @@ static void test_get_osfhandle(void) DWORD bytes_written; HANDLE handle; - fd = _sopen(fname, _O_CREAT|_O_RDWR, _SH_DENYRW, 0); + fd = _sopen(fname, _O_CREAT|_O_RDWR, _SH_DENYRW, _S_IREAD | _S_IWRITE); handle = (HANDLE)_get_osfhandle(fd); WriteFile(handle, "bar", 3, &bytes_written, NULL); _close(fd); fd = _open(fname, _O_RDONLY, 0); ok(fd != -1, "Coudn't open '%s' after _get_osfhanle()\n", fname); - CloseHandle(handle); + _close(fd); _unlink(fname); }
1
0
0
0
William Knop : dbghelp: Fix for non-elf build (undefined symbol: _elf_is_in_thunk_area).
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: 289a068b4fcc61821f913f0be9c8dce2b12cce50 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=289a068b4fcc61821f913f0…
Author: William Knop <william.knop(a)gmail.com> Date: Tue Jun 27 02:32:38 2006 -0400 dbghelp: Fix for non-elf build (undefined symbol: _elf_is_in_thunk_area). --- dlls/dbghelp/elf_module.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c index 4e86ec2..11ddfb8 100644 --- a/dlls/dbghelp/elf_module.c +++ b/dlls/dbghelp/elf_module.c @@ -1489,4 +1489,10 @@ BOOL elf_load_debug_info(struct module* { return FALSE; } + +int elf_is_in_thunk_area(unsigned long addr, + const struct elf_thunk_area* thunks) +{ + return -1; +} #endif /* __ELF__ */
1
0
0
0
Paul Vriens : uxtheme/tests: Add tests for IsThemePartDefined.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: d9c5cef339c7e169e6b9dbd96a3158f91fa9056c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=d9c5cef339c7e169e6b9dbd…
Author: Paul Vriens <Paul.Vriens(a)xs4all.nl> Date: Tue Jun 27 16:34:33 2006 +0200 uxtheme/tests: Add tests for IsThemePartDefined. --- dlls/uxtheme/tests/system.c | 31 ++++++++++++++++++++++++++----- 1 files changed, 26 insertions(+), 5 deletions(-) diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c index ccf10e8..ae6901c 100644 --- a/dlls/uxtheme/tests/system.c +++ b/dlls/uxtheme/tests/system.c @@ -30,6 +30,7 @@ static HRESULT (WINAPI * pGetCurrentThem static HTHEME (WINAPI * pGetWindowTheme)(HWND); static BOOL (WINAPI * pIsAppThemed)(VOID); static BOOL (WINAPI * pIsThemeActive)(VOID); +static BOOL (WINAPI * pIsThemePartDefined)(HTHEME, int, int); static HTHEME (WINAPI * pOpenThemeData)(HWND, LPCWSTR); static HRESULT (WINAPI * pSetWindowTheme)(HWND, LPCWSTR, LPCWSTR); @@ -57,6 +58,7 @@ static BOOL InitFunctionPtrs(void) UXTHEME_GET_PROC(GetWindowTheme) UXTHEME_GET_PROC(IsAppThemed) UXTHEME_GET_PROC(IsThemeActive) + UXTHEME_GET_PROC(IsThemePartDefined) UXTHEME_GET_PROC(OpenThemeData) UXTHEME_GET_PROC(SetWindowTheme) } @@ -64,10 +66,10 @@ static BOOL InitFunctionPtrs(void) * be checked (at some point in time) within the single tests if needed. All used functions for * now are present on WinXP, W2K3 and Wine. */ - if (!pCloseThemeData || !pGetWindowTheme || - !pIsAppThemed || !pIsThemeActive || - !pOpenThemeData || !pSetWindowTheme || - !pGetCurrentThemeName) + if (!pCloseThemeData || !pGetCurrentThemeName || + !pGetWindowTheme || !pIsAppThemed || + !pIsThemeActive || !pIsThemePartDefined || + !pOpenThemeData || !pSetWindowTheme) return FALSE; return TRUE; @@ -77,6 +79,7 @@ static void test_IsThemed(void) { BOOL bThemeActive; BOOL bAppThemed; + BOOL bTPDefined; SetLastError(0xdeadbeef); bThemeActive = pIsThemeActive(); @@ -101,6 +104,13 @@ static void test_IsThemed(void) ok( GetLastError() == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got 0x%08lx\n", GetLastError()); + + SetLastError(0xdeadbeef); + bTPDefined = pIsThemePartDefined(NULL, 0 , 0); + ok( bTPDefined == FALSE, "Expected FALSE\n"); + ok( GetLastError() == E_HANDLE, + "Expected E_HANDLE, got 0x%08lx\n", + GetLastError()); } static void test_GetWindowTheme(void) @@ -174,6 +184,7 @@ static void test_OpenThemeData(void) BOOL bThemeActive; HRESULT hRes; BOOL bDestroyed; + BOOL bTPDefined; WCHAR szInvalidClassList[] = {'D','E','A','D','B','E','E','F', 0 }; WCHAR szButtonClassList[] = {'B','u','t','t','o','n', 0 }; @@ -313,6 +324,16 @@ static void test_OpenThemeData(void) "Expected 0xdeadbeef, got 0x%08lx\n", GetLastError()); + SetLastError(0xdeadbeef); + bTPDefined = pIsThemePartDefined(hTheme, 0 , 0); + todo_wine + { + ok( bTPDefined == FALSE, "Expected FALSE\n"); + ok( GetLastError() == ERROR_SUCCESS, + "Expected ERROR_SUCCESS, got 0x%08lx\n", + GetLastError()); + } + bDestroyed = DestroyWindow(hWnd); if (!bDestroyed) trace("Window %p couldn't be destroyed : 0x%08lx\n", @@ -461,7 +482,7 @@ START_TEST(system) * only show input/return behaviour */ - /* IsThemeActive and IsAppThemed */ + /* IsThemeActive, IsAppThemed and IsThemePartDefined*/ trace("Starting test_IsThemed()\n"); test_IsThemed();
1
0
0
0
Hans Leidekker : userenv: Add a stub implementation for GetProfileType.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: 3a40b175c4cb2818987adb07cff6922f3f25a734 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=3a40b175c4cb2818987adb0…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Tue Jun 27 15:28:45 2006 +0200 userenv: Add a stub implementation for GetProfileType. --- dlls/userenv/userenv.spec | 1 + dlls/userenv/userenv_main.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/dlls/userenv/userenv.spec b/dlls/userenv/userenv.spec index a278905..6cd6437 100644 --- a/dlls/userenv/userenv.spec +++ b/dlls/userenv/userenv.spec @@ -2,6 +2,7 @@ @ stub DestroyEnvironmentBlock @ stdcall GetProfilesDirectoryA(ptr ptr) @ stdcall GetProfilesDirectoryW(ptr ptr) +@ stdcall GetProfileType(ptr) @ stdcall GetUserProfileDirectoryA(ptr ptr ptr) @ stdcall GetUserProfileDirectoryW(ptr ptr ptr) @ stdcall LoadUserProfileA(ptr ptr) diff --git a/dlls/userenv/userenv_main.c b/dlls/userenv/userenv_main.c index 9c55874..dc79387 100644 --- a/dlls/userenv/userenv_main.c +++ b/dlls/userenv/userenv_main.c @@ -79,6 +79,18 @@ BOOL WINAPI GetProfilesDirectoryW( LPWST return FALSE; } +/* FIXME: these belong in userenv.h */ +#define PT_TEMPORARY 0x00000001 +#define PT_ROAMING 0x00000002 +#define PT_MANDATORY 0x00000004 + +BOOL WINAPI GetProfileType( LPDWORD pdwFlags ) +{ + FIXME("%p\n", pdwFlags ); + *pdwFlags = PT_MANDATORY | PT_ROAMING | PT_TEMPORARY; + return TRUE; +} + BOOL WINAPI LoadUserProfileA( HANDLE hToken, LPPROFILEINFOA lpProfileInfo ) { FIXME("%p %p\n", hToken, lpProfileInfo );
1
0
0
0
Stefan Dösinger : wined3d: Vertex buffer can be locked multiple times.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: cea41b0a0ff4a68c9c0507cdec604c142c493e53 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=cea41b0a0ff4a68c9c0507c…
Author: Stefan Dösinger <stefandoesinger(a)gmx.at> Date: Tue Jun 27 13:11:13 2006 +0200 wined3d: Vertex buffer can be locked multiple times. --- dlls/d3d8/tests/device.c | 14 ++++++++++++++ dlls/ddraw/vertexbuffer.c | 20 +++++++++++--------- dlls/wined3d/vertexbuffer.c | 25 ++++++++++++++++++++++--- dlls/wined3d/wined3d_private.h | 1 + 4 files changed, 48 insertions(+), 12 deletions(-) diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c index f754fe1..d821340 100644 --- a/dlls/d3d8/tests/device.c +++ b/dlls/d3d8/tests/device.c @@ -267,6 +267,20 @@ static void test_refcount(void) hr = IDirect3DDevice8_CreateAdditionalSwapChain( pDevice, &d3dpp, &pSwapChain ); CHECK_CALL( hr, "CreateAdditionalSwapChain", pDevice, refcount+1 ); + if(pVertexBuffer) + { + BYTE *data; + /* Vertex buffers can be locked multiple times */ + hr = IDirect3DVertexBuffer8_Lock(pVertexBuffer, 0, 0, &data, 0); + ok(hr == D3D_OK, "IDirect3DVertexBuffer8::Lock failed with %08lx\n", hr); + hr = IDirect3DVertexBuffer8_Lock(pVertexBuffer, 0, 0, &data, 0); + ok(hr == D3D_OK, "IDirect3DVertexBuffer8::Lock failed with %08lx\n", hr); + hr = IDirect3DVertexBuffer8_Unlock(pVertexBuffer); + ok(hr == D3D_OK, "IDirect3DVertexBuffer8::Unlock failed with %08lx\n", hr); + hr = IDirect3DVertexBuffer8_Unlock(pVertexBuffer); + ok(hr == D3D_OK, "IDirect3DVertexBuffer8::Unlock failed with %08lx\n", hr); + } + cleanup: if (pDevice) IUnknown_Release( pDevice ); diff --git a/dlls/ddraw/vertexbuffer.c b/dlls/ddraw/vertexbuffer.c index a24bfc4..01db5d5 100644 --- a/dlls/ddraw/vertexbuffer.c +++ b/dlls/ddraw/vertexbuffer.c @@ -214,20 +214,22 @@ IDirect3DVertexBufferImpl_Lock(IDirect3D HRESULT hr; TRACE("(%p)->(%08lx,%p,%p)\n", This, Flags, Data, Size); - /* Get the size, for returning it, and for locking */ - hr = IWineD3DVertexBuffer_GetDesc(This->wineD3DVertexBuffer, - &Desc); - if(hr != D3D_OK) + if(*Size) { - ERR("(%p) IWineD3DVertexBuffer::GetDesc failed with hr=%08lx\n", This, hr); - return hr; + /* Get the size, for returning it, and for locking */ + hr = IWineD3DVertexBuffer_GetDesc(This->wineD3DVertexBuffer, + &Desc); + if(hr != D3D_OK) + { + ERR("(%p) IWineD3DVertexBuffer::GetDesc failed with hr=%08lx\n", This, hr); + return hr; + } + *Size = Desc.Size; } - if(Size) *Size = Desc.Size; - return IWineD3DVertexBuffer_Lock(This->wineD3DVertexBuffer, 0 /* OffsetToLock */, - Desc.Size, + 0 /* SizeToLock, 0 == Full lock */, (BYTE **) Data, Flags); } diff --git a/dlls/wined3d/vertexbuffer.c b/dlls/wined3d/vertexbuffer.c index c669a6b..b58591c 100644 --- a/dlls/wined3d/vertexbuffer.c +++ b/dlls/wined3d/vertexbuffer.c @@ -145,8 +145,9 @@ static void WINAPI IWineD3DVertexBuf GL_EXTCALL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, This->vbo)); checkGLcall("glBindBufferARB"); GL_EXTCALL(glBufferSubDataARB(GL_ARRAY_BUFFER_ARB, 0, This->resource.size, This->resource.allocatedMemory)); - checkGLcall("glUnmapBuffer glBufferSubDataARB"); + checkGLcall("glBufferSubDataARB"); LEAVE_GL(); + /* Lock directly into the VBO in the future */ HeapFree(GetProcessHeap(), 0, This->resource.allocatedMemory); This->resource.allocatedMemory = NULL; This->Flags &= ~VBFLAG_DIRTY; @@ -334,12 +335,21 @@ static HRESULT WINAPI IWineD3DVertexBuf BYTE *data; TRACE("(%p)->%d, %d, %p, %08lx\n", This, OffsetToLock, SizeToLock, ppbData, Flags); + InterlockedIncrement(&This->lockcount); + if(This->Flags & VBFLAG_DIRTY) { if(This->dirtystart > OffsetToLock) This->dirtystart = OffsetToLock; - if(This->dirtyend < OffsetToLock + SizeToLock) This->dirtyend = OffsetToLock + SizeToLock; + if(SizeToLock) { + if(This->dirtyend < OffsetToLock + SizeToLock) This->dirtyend = OffsetToLock + SizeToLock; + } else { + This->dirtyend = This->resource.size; + } } else { This->dirtystart = OffsetToLock; - This->dirtyend = OffsetToLock + SizeToLock; + if(SizeToLock) + This->dirtyend = OffsetToLock + SizeToLock; + else + This->dirtyend = OffsetToLock + This->resource.size; } if(This->resource.allocatedMemory) { @@ -375,7 +385,16 @@ static HRESULT WINAPI IWineD3DVertexBuf } HRESULT WINAPI IWineD3DVertexBufferImpl_Unlock(IWineD3DVertexBuffer *iface) { IWineD3DVertexBufferImpl *This = (IWineD3DVertexBufferImpl *) iface; + LONG lockcount; TRACE("(%p)\n", This); + + lockcount = InterlockedDecrement(&This->lockcount); + if(lockcount > 0) { + /* Delay loading the buffer until everything is unlocked */ + TRACE("Ignoring the unlock\n"); + return D3D_OK; + } + if(!This->resource.allocatedMemory) { ENTER_GL(); GL_EXTCALL(glBindBufferARB(GL_ARRAY_BUFFER_ARB, This->vbo)); diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index cbb92f5..d55b810 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -633,6 +633,7 @@ typedef struct IWineD3DVertexBufferImpl UINT stream; UINT dirtystart, dirtyend; + LONG lockcount; /* Last description of the buffer */ WineDirect3DVertexStridedData strided;
1
0
0
0
Huw Davies : msxml3: Always have a libxml doc associated with a domdoc object, even if the object has no nodes.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: 54c85d3d044127bfc946de75e53f9c7ac3acf8d3 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=54c85d3d044127bfc946de7…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Jun 27 10:54:40 2006 +0100 msxml3: Always have a libxml doc associated with a domdoc object, even if the object has no nodes. This means we don't need to add checks for NULL libxml node ptrs in our node implementation. --- dlls/msxml3/domdoc.c | 93 +++++++++++++++++++++++--------------------- dlls/msxml3/tests/domdoc.c | 8 ++++ 2 files changed, 56 insertions(+), 45 deletions(-) diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 39e4768..b837288 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -664,12 +664,7 @@ static HRESULT WINAPI domdoc_get_documen *DOMElement = NULL; - if ( !This->node ) - return S_FALSE; - xmldoc = get_doc( This ); - if ( !xmldoc ) - return S_FALSE; root = xmlDocGetRootElement( xmldoc ); if ( !root ) @@ -811,7 +806,6 @@ static HRESULT WINAPI domdoc_createNode( DOMNodeType node_type; xmlNodePtr xmlnode = NULL; xmlChar *xml_name; - xmlDocPtr xmldoc; TRACE("(%p)->(type,%s,%s,%p)\n", This, debugstr_w(name), debugstr_w(namespaceURI), node); @@ -820,13 +814,6 @@ static HRESULT WINAPI domdoc_createNode( xml_name = xmlChar_from_wchar((WCHAR*)name); - if(!get_doc(This)) - { - xmldoc = xmlNewDoc(NULL); - xmldoc->_private = 0; - attach_xmlnode(This->node, (xmlNodePtr) xmldoc); - } - switch(node_type) { case NODE_ELEMENT: @@ -959,7 +946,8 @@ static HRESULT WINAPI domdoc_load( { domdoc *This = impl_from_IXMLDOMDocument( iface ); LPWSTR filename = NULL; - xmlDocPtr xmldoc; + xmlDocPtr xmldoc = NULL; + HRESULT hr = S_FALSE; TRACE("type %d\n", V_VT(&xmlSource) ); @@ -975,22 +963,26 @@ static HRESULT WINAPI domdoc_load( filename = V_BSTR(&xmlSource); } - if ( !filename ) - return S_FALSE; - - xmldoc = doread( filename ); - if ( !xmldoc ) + if ( filename ) { - This->error = E_FAIL; - return S_FALSE; + xmldoc = doread( filename ); + + if ( !xmldoc ) + This->error = E_FAIL; + else + { + hr = This->error = S_OK; + *isSuccessful = VARIANT_TRUE; + } } - This->error = S_OK; + if(!xmldoc) + xmldoc = xmlNewDoc(NULL); + xmldoc->_private = 0; attach_xmlnode(This->node, (xmlNodePtr) xmldoc); - *isSuccessful = VARIANT_TRUE; - return S_OK; + return hr; } @@ -1084,9 +1076,10 @@ static HRESULT WINAPI domdoc_loadXML( VARIANT_BOOL* isSuccessful ) { domdoc *This = impl_from_IXMLDOMDocument( iface ); - xmlDocPtr xmldoc; + xmlDocPtr xmldoc = NULL; char *str; int len; + HRESULT hr = S_FALSE; TRACE("%p %s %p\n", This, debugstr_w( bstrXML ), isSuccessful ); @@ -1094,31 +1087,30 @@ static HRESULT WINAPI domdoc_loadXML( attach_xmlnode( This->node, NULL ); - if ( !isSuccessful ) - return S_FALSE; - - *isSuccessful = VARIANT_FALSE; - - if ( !bstrXML ) - return S_FALSE; - - if ( !bstr_to_utf8( bstrXML, &str, &len ) ) - return S_FALSE; - - xmldoc = doparse( str, len ); - HeapFree( GetProcessHeap(), 0, str ); - if ( !xmldoc ) + if ( isSuccessful ) { - This->error = E_FAIL; - return S_FALSE; + *isSuccessful = VARIANT_FALSE; + + if ( bstrXML && bstr_to_utf8( bstrXML, &str, &len ) ) + { + xmldoc = doparse( str, len ); + HeapFree( GetProcessHeap(), 0, str ); + if ( !xmldoc ) + This->error = E_FAIL; + else + { + hr = This->error = S_OK; + *isSuccessful = VARIANT_TRUE; + } + } } + if(!xmldoc) + xmldoc = xmlNewDoc(NULL); - This->error = S_OK; xmldoc->_private = 0; attach_xmlnode( This->node, (xmlNodePtr) xmldoc ); - *isSuccessful = VARIANT_TRUE; - return S_OK; + return hr; } @@ -1325,6 +1317,7 @@ HRESULT DOMDocument_create(IUnknown *pUn { domdoc *doc; HRESULT hr; + xmlDocPtr xmldoc; TRACE("(%p,%p)\n", pUnkOuter, ppObj); @@ -1337,9 +1330,19 @@ HRESULT DOMDocument_create(IUnknown *pUn doc->async = 0; doc->error = S_OK; - doc->node_unk = create_basic_node( NULL, (IUnknown*)&doc->lpVtbl ); + xmldoc = xmlNewDoc(NULL); + if(!xmldoc) + { + HeapFree(GetProcessHeap(), 0, doc); + return E_OUTOFMEMORY; + } + + xmldoc->_private = 0; + + doc->node_unk = create_basic_node( (xmlNodePtr)xmldoc, (IUnknown*)&doc->lpVtbl ); if(!doc->node_unk) { + xmlFreeDoc(xmldoc); HeapFree(GetProcessHeap(), 0, doc); return E_FAIL; } diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 68f1d1b..808ad93 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -98,6 +98,7 @@ void test_domdoc( void ) IXMLDOMDocument *doc = NULL; IXMLDOMParseError *error; IXMLDOMElement *element = NULL; + IXMLDOMNode *node; VARIANT_BOOL b; VARIANT var; BSTR str; @@ -142,6 +143,13 @@ void test_domdoc( void ) r = IXMLDOMDocument_get_documentElement( doc, &element ); ok( r == S_FALSE, "should be no document element\n"); + /* try finding a node */ + node = NULL; + str = SysAllocString( szstr1 ); + r = IXMLDOMDocument_selectSingleNode( doc, str, &node ); + ok( r == S_FALSE, "ret %08lx\n", r ); + SysFreeString( str ); + b = VARIANT_TRUE; str = SysAllocString( szIncomplete ); r = IXMLDOMDocument_loadXML( doc, str, &b );
1
0
0
0
James Hawkins : msi: Read the font color from the database, and use it for the text control.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: 3c56550ea5141b48ec19a7a44b3e49f0bf7c6b2e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=3c56550ea5141b48ec19a7a…
Author: James Hawkins <truiken(a)gmail.com> Date: Tue Jun 27 02:04:16 2006 -0700 msi: Read the font color from the database, and use it for the text control. --- dlls/msi/dialog.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 5d36d93..ce1af99 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -71,6 +71,7 @@ typedef struct msi_font_tag { struct msi_font_tag *next; HFONT hfont; + COLORREF color; WCHAR name[1]; } msi_font; @@ -243,6 +244,8 @@ static UINT msi_dialog_add_font( MSIRECO font->next = dialog->font_list; dialog->font_list = font; + font->color = MSI_RecordGetInteger( rec, 4 ); + memset( &lf, 0, sizeof lf ); face = MSI_RecordGetString( rec, 2 ); lf.lfHeight = MSI_RecordGetInteger( rec, 3 ); @@ -563,6 +566,7 @@ static msi_control *msi_dialog_add_contr struct msi_text_info { + msi_font *font; WNDPROC oldproc; DWORD attributes; }; @@ -592,6 +596,9 @@ MSIText_WndProc(HWND hWnd, UINT msg, WPA info = GetPropW(hWnd, szButtonData); + if ( info->font ) + SetTextColor( (HDC)wParam, info->font->color ); + if( msg == WM_CTLCOLORSTATIC && ( info->attributes & msidbControlAttributesTransparent ) ) { @@ -619,6 +626,8 @@ static UINT msi_dialog_text_control( msi { msi_control *control; struct msi_text_info *info; + LPCWSTR text, ptr; + LPWSTR font_name; TRACE("%p %p\n", dialog, rec); @@ -630,6 +639,11 @@ static UINT msi_dialog_text_control( msi if( !info ) return ERROR_SUCCESS; + text = MSI_RecordGetString( rec, 10 ); + font_name = msi_dialog_get_style( text, &ptr ); + info->font = ( font_name ) ? msi_dialog_find_font( dialog, font_name ) : NULL; + msi_free( font_name ); + info->attributes = MSI_RecordGetInteger( rec, 8 ); if( info->attributes & msidbControlAttributesTransparent ) SetWindowLongPtrW( control->hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT );
1
0
0
0
James Hawkins : msiexec: Use CommandLineToArgvW instead of process_args to reduce code duplication.
by Alexandre Julliard
27 Jun '06
27 Jun '06
Module: wine Branch: refs/heads/master Commit: 7c35db000b26852fc2bf4a7a7e349953f60d183f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=7c35db000b26852fc2bf4a7…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Jun 26 14:53:32 2006 -0700 msiexec: Use CommandLineToArgvW instead of process_args to reduce code duplication. --- programs/msiexec/Makefile.in | 2 - programs/msiexec/msiexec.c | 104 +----------------------------------------- 2 files changed, 4 insertions(+), 102 deletions(-) diff --git a/programs/msiexec/Makefile.in b/programs/msiexec/Makefile.in index 22815a0..2ddd272 100644 --- a/programs/msiexec/Makefile.in +++ b/programs/msiexec/Makefile.in @@ -4,7 +4,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = msiexec.exe APPMODE = -mconsole -IMPORTS = msi ole32 advapi32 user32 kernel32 +IMPORTS = msi shell32 ole32 advapi32 user32 kernel32 EXTRALIBS = $(LIBUNICODE) C_SRCS = \ diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index 809b38f..d637216 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -25,6 +25,7 @@ #include <windows.h> #include <msi.h> #include <objbase.h> #include <stdio.h> +#include <shellapi.h> #include "wine/debug.h" #include "wine/unicode.h" @@ -210,14 +211,6 @@ static DWORD msi_atou(LPCWSTR str) return 0; } -static LPWSTR msi_strdup(LPCWSTR str) -{ - DWORD len = lstrlenW(str)+1; - LPWSTR ret = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*len); - lstrcpyW(ret, str); - return ret; -} - /* str1 is the same as str2, ignoring case */ static BOOL msi_strequal(LPCWSTR str1, LPCSTR str2) { @@ -316,97 +309,6 @@ static DWORD DoDllUnregisterServer(LPCWS return 0; } -/* - * state machine to break up the command line properly - */ - -enum chomp_state -{ - cs_whitespace, - cs_token, - cs_quote -}; - -static int chomp( WCHAR *str ) -{ - enum chomp_state state = cs_whitespace; - WCHAR *p, *out; - int count = 0, ignore; - - for( p = str, out = str; *p; p++ ) - { - ignore = 1; - switch( state ) - { - case cs_whitespace: - switch( *p ) - { - case ' ': - break; - case '"': - state = cs_quote; - count++; - break; - default: - count++; - ignore = 0; - state = cs_token; - } - break; - - case cs_token: - switch( *p ) - { - case '"': - state = cs_quote; - break; - case ' ': - state = cs_whitespace; - *out++ = 0; - break; - default: - ignore = 0; - } - break; - - case cs_quote: - switch( *p ) - { - case '"': - state = cs_token; - break; - default: - ignore = 0; - } - break; - } - if( !ignore ) - *out++ = *p; - } - - *out = 0; - - return count; -} - -static void process_args( WCHAR *cmdline, int *pargc, WCHAR ***pargv ) -{ - WCHAR **argv, *p = msi_strdup(cmdline); - int i, n; - - n = chomp( p ); - argv = HeapAlloc(GetProcessHeap(), 0, sizeof (WCHAR*)*(n+1)); - for( i=0; i<n; i++ ) - { - argv[i] = p; - p += lstrlenW(p) + 1; - } - argv[i] = NULL; - - *pargc = n; - *pargv = argv; -} - static BOOL process_args_from_reg( LPWSTR ident, int *pargc, WCHAR ***pargv ) { LONG r; @@ -425,7 +327,7 @@ static BOOL process_args_from_reg( LPWST r = RegQueryValueExW(hkey, ident, 0, &type, (LPBYTE)buf, &sz); if( r == ERROR_SUCCESS ) { - process_args(buf, pargc, pargv); + *pargv = CommandLineToArgvW(buf, pargc); ret = TRUE; } } @@ -471,7 +373,7 @@ int main(int argc, char **argv) LPWSTR *argvW = NULL; /* overwrite the command line */ - process_args( GetCommandLineW(), &argc, &argvW ); + argvW = CommandLineToArgvW( GetCommandLineW(), &argc ); /* * If the args begin with /@ IDENT then we need to load the real
1
0
0
0
← Newer
1
...
4
5
6
7
8
9
10
...
86
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
Results per page:
10
25
50
100
200