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
April 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
1278 discussions
Start a n
N
ew thread
Vitaly Perov : cabinet: Added a test for FDICopy with an empty cabinet file .
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 1077238143911d10650eb6ee9f0fa3e269ae7eb4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1077238143911d10650eb6ee9…
Author: Vitaly Perov <vitperov(a)etersoft.ru> Date: Thu Apr 24 18:13:32 2008 +0400 cabinet: Added a test for FDICopy with an empty cabinet file. --- dlls/cabinet/tests/fdi.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/dlls/cabinet/tests/fdi.c b/dlls/cabinet/tests/fdi.c index 18745f2..bedcfa6 100644 --- a/dlls/cabinet/tests/fdi.c +++ b/dlls/cabinet/tests/fdi.c @@ -593,9 +593,54 @@ static void test_FDIIsCabinet(void) delete_test_files(); } + +INT_PTR __cdecl CopyProgress (FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin) +{ + return 0; +} + +static void test_FDICopy(void) +{ + CCAB cabParams; + HFDI hfdi; + HFCI hfci; + ERF erf; + BOOL ret; + char name[] = "extract.cab"; + char path[MAX_PATH + 1]; + + GetCurrentDirectoryA(MAX_PATH, path); + + set_cab_parameters(&cabParams); + + hfci = FCICreate(&erf, file_placed, mem_alloc, mem_free, fci_open, + fci_read, fci_write, fci_close, fci_seek, + fci_delete, get_temp_file, &cabParams, NULL); + + ret = FCIFlushCabinet(hfci, FALSE, get_next_cabinet, progress); + ok(ret, "Failed to flush the cabinet\n"); + + FCIDestroy(hfci); + + hfdi = FDICreate(fdi_alloc, fdi_free, fdi_open, fdi_read, + fdi_write, fdi_close, fdi_seek, + cpuUNKNOWN, &erf); + + ret=FDICopy(hfdi, name, path, 0, CopyProgress, NULL, 0); + todo_wine + { + ok(ret, "Expected FDICopy to succeed\n"); + } + + FDIDestroy(hfdi); + DeleteFileA(name); +} + + START_TEST(fdi) { test_FDICreate(); test_FDIDestroy(); test_FDIIsCabinet(); + test_FDICopy(); }
1
0
0
0
Vitaly Perov : cabinet: Fix for FDICopy with an empty cabinet file.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 33e561f53cc510c6b5be3b4f1f3d2fbf8aa7486c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=33e561f53cc510c6b5be3b4f1…
Author: Vitaly Perov <vitperov(a)etersoft.ru> Date: Thu Apr 24 18:13:46 2008 +0400 cabinet: Fix for FDICopy with an empty cabinet file. --- dlls/cabinet/fdi.c | 25 ++++++++++++++++--------- dlls/cabinet/tests/fdi.c | 5 +---- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c index 468a68d..7e5edcd 100644 --- a/dlls/cabinet/fdi.c +++ b/dlls/cabinet/fdi.c @@ -562,9 +562,14 @@ static BOOL FDI_read_entries( /* get the number of folders */ num_folders = EndGetI16(buf+cfhead_NumFolders); - if (num_folders == 0) { - /* PONDERME: is this really invalid? */ - WARN("weird cabinet detect failure: no folders in cabinet\n"); + /* if num_folders is 0, it's correct cab, but empty */ + /* if num_folders is 1, there is no folders in this cab */ + + /* get the number of files */ + num_files = EndGetI16(buf+cfhead_NumFiles); + if (num_files && !num_folders) { + /* If there at least one file in the cabinet. num_folders is always >= 1 */ + WARN("weird cabinet detect failure: cabinet is not empty, but num_folders = 0\n"); if (pmii) { PFDI_INT(hfdi)->perf->erfOper = FDIERROR_NOT_A_CABINET; PFDI_INT(hfdi)->perf->erfType = 0; @@ -572,12 +577,9 @@ static BOOL FDI_read_entries( } return FALSE; } - - /* get the number of files */ - num_files = EndGetI16(buf+cfhead_NumFiles); - if (num_files == 0) { - /* PONDERME: is this really invalid? */ - WARN("weird cabinet detect failure: no files in cabinet\n"); + if (!num_files && num_folders) { + /* If cabinet consist of 0 files, num_folders must be 0 */ + WARN("weird cabinet detect failure: no files in cabinet, but there are folders\n"); if (pmii) { PFDI_INT(hfdi)->perf->erfOper = FDIERROR_NOT_A_CABINET; PFDI_INT(hfdi)->perf->erfType = 0; @@ -2834,6 +2836,11 @@ BOOL __cdecl FDICopy( } /* free decompression temps */ + if (!fol) { + /* Empty cabinet */ + PFDI_CLOSE(hfdi, cabhf); + return TRUE; /* empty, but correct */ + } switch (fol->comp_type & cffoldCOMPTYPE_MASK) { case cffoldCOMPTYPE_LZX: if (LZX(window)) { diff --git a/dlls/cabinet/tests/fdi.c b/dlls/cabinet/tests/fdi.c index bedcfa6..fc36c78 100644 --- a/dlls/cabinet/tests/fdi.c +++ b/dlls/cabinet/tests/fdi.c @@ -627,10 +627,7 @@ static void test_FDICopy(void) cpuUNKNOWN, &erf); ret=FDICopy(hfdi, name, path, 0, CopyProgress, NULL, 0); - todo_wine - { - ok(ret, "Expected FDICopy to succeed\n"); - } + ok(ret, "Expected FDICopy to succeed\n"); FDIDestroy(hfdi); DeleteFileA(name);
1
0
0
0
Kusanagi Kouichi : imm32: Fix typos.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 9b560b5de8c28d63df5814e6716747e4146cc8ee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9b560b5de8c28d63df5814e67…
Author: Kusanagi Kouichi <slash(a)ma.neweb.ne.jp> Date: Fri Apr 25 16:14:59 2008 +0900 imm32: Fix typos. --- dlls/imm32/imm.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c index 1f20e42..f89dd2a 100644 --- a/dlls/imm32/imm.c +++ b/dlls/imm32/imm.c @@ -818,7 +818,7 @@ LONG WINAPI ImmGetCompositionStringA( { LPWSTR ResultStr = (LPWSTR)(compdata + compstr->dwResultStrOffset); - TRACE("GSC_RESULTSTR %p %i\n",ResultStr, + TRACE("GCS_RESULTSTR %p %i\n",ResultStr, compstr->dwResultStrLen); buf = HeapAlloc( GetProcessHeap(), 0, compstr->dwResultStrLen * 3 ); @@ -835,7 +835,7 @@ LONG WINAPI ImmGetCompositionStringA( { LPWSTR CompString = (LPWSTR)(compdata + compstr->dwCompStrOffset); - TRACE("GSC_COMPSTR %p %i\n", CompString, compstr->dwCompStrLen); + TRACE("GCS_COMPSTR %p %i\n", CompString, compstr->dwCompStrLen); buf = HeapAlloc( GetProcessHeap(), 0, compstr->dwCompStrLen * 3 ); rc = WideCharToMultiByte(CP_ACP, 0, CompString, @@ -849,7 +849,7 @@ LONG WINAPI ImmGetCompositionStringA( compstr->dwCompAttrOffset > 0) { LPWSTR Compattr = (LPWSTR)(compdata + compstr->dwCompAttrOffset); - TRACE("GSC_COMPATTR %p %i\n", Compattr , compstr->dwCompAttrLen); + TRACE("GCS_COMPATTR %p %i\n", Compattr , compstr->dwCompAttrLen); rc = compstr->dwCompAttrLen; if (dwBufLen >= rc) @@ -859,7 +859,7 @@ LONG WINAPI ImmGetCompositionStringA( compstr->dwCompClauseOffset > 0) { LPWSTR Compclause = (LPWSTR)(compdata + compstr->dwCompClauseOffset); - TRACE("GSC_COMPCLAUSE %p %i\n", Compclause, compstr->dwCompClauseLen); + TRACE("GCS_COMPCLAUSE %p %i\n", Compclause, compstr->dwCompClauseLen); rc = compstr->dwCompClauseLen; if (dwBufLen >= compstr->dwCompClauseLen) @@ -869,7 +869,7 @@ LONG WINAPI ImmGetCompositionStringA( compstr->dwResultClauseOffset > 0) { LPWSTR Resultclause = (LPWSTR)(compdata + compstr->dwResultClauseOffset); - TRACE("GSC_RESULTCLAUSE %p %i\n", Resultclause, compstr->dwResultClauseLen); + TRACE("GCS_RESULTCLAUSE %p %i\n", Resultclause, compstr->dwResultClauseLen); rc = compstr->dwResultClauseLen; if (dwBufLen >= compstr->dwResultClauseLen) @@ -877,7 +877,7 @@ LONG WINAPI ImmGetCompositionStringA( } else if (dwIndex == GCS_CURSORPOS) { - TRACE("GSC_CURSORPOS\n"); + TRACE("GCS_CURSORPOS\n"); rc = compstr->dwCursorPos; } else if (dwIndex == GCS_DELTASTART) @@ -975,7 +975,7 @@ LONG WINAPI ImmGetCompositionStringW( } else if (dwIndex == GCS_CURSORPOS) { - TRACE("GSC_CURSORPOS\n"); + TRACE("GCS_CURSORPOS\n"); rc = compstr->dwCursorPos; } else if (dwIndex == GCS_DELTASTART)
1
0
0
0
Kusanagi Kouichi : winex11: Destroy the handle to the composition string after it is cancelled.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 4f2330ac0c951ec5fb05e2fb152c59723c3af336 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4f2330ac0c951ec5fb05e2fb1…
Author: Kusanagi Kouichi <slash(a)ma.neweb.ne.jp> Date: Fri Apr 25 12:08:24 2008 +0900 winex11: Destroy the handle to the composition string after it is cancelled. --- dlls/winex11.drv/ime.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c index 6614213..f50549f 100644 --- a/dlls/winex11.drv/ime.c +++ b/dlls/winex11.drv/ime.c @@ -775,6 +775,12 @@ BOOL WINAPI NotifyIME(HIMC hIMC, DWORD dwAction, DWORD dwIndex, DWORD dwValue) X11DRV_ForceXIMReset(lpIMC->hWnd); + if (lpIMC->hCompStr) + { + ImmDestroyIMCC(lpIMC->hCompStr); + lpIMC->hCompStr = NULL; + } + myPrivate = (LPIMEPRIVATE)ImmLockIMCC(lpIMC->hPrivate); if (myPrivate->bInComposition) {
1
0
0
0
Lei Zhang : user32: Edit controls should ignore WM_KEYDOWN on control + enter.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: ae1b735547857fd8473b7d01c6be1ee586807e6a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ae1b735547857fd8473b7d01c…
Author: Lei Zhang <thestig(a)google.com> Date: Thu Apr 24 22:17:38 2008 -0700 user32: Edit controls should ignore WM_KEYDOWN on control + enter. --- dlls/user32/edit.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 4c0342b..b58dc96 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -4606,6 +4606,7 @@ static LRESULT EDIT_WM_KeyDown(EDITSTATE *es, INT key) DWORD dw; if (!EDIT_IsInsideDialog(es)) return 1; + if (control) break; hwndParent = GetParent(es->hwndSelf); dw = SendMessageW( hwndParent, DM_GETDEFID, 0, 0 ); if (HIWORD(dw) == DC_HASDEFID)
1
0
0
0
James Hawkins : ddraw: Fix tests that fail with the reference rasterizer.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 2f97a71e36cb62f035415a44da7f5311a6903bfd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2f97a71e36cb62f035415a44d…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Thu Apr 24 22:38:40 2008 -0500 ddraw: Fix tests that fail with the reference rasterizer. --- dlls/ddraw/tests/dsurface.c | 29 +++++++++++++++++++++++++---- 1 files changed, 25 insertions(+), 4 deletions(-) diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c index dded991..42c23a4 100644 --- a/dlls/ddraw/tests/dsurface.c +++ b/dlls/ddraw/tests/dsurface.c @@ -1218,6 +1218,7 @@ static void AttachmentTest(void) IDirectDrawSurface *surface1, *surface2, *surface3, *surface4; DDSURFACEDESC ddsd; DDSCAPS caps = {DDSCAPS_TEXTURE}; + BOOL refrast = FALSE; HWND window = CreateWindow( "static", "ddraw_test", WS_OVERLAPPEDWINDOW, 100, 100, 160, 160, NULL, NULL, NULL, NULL ); memset(&ddsd, 0, sizeof(ddsd)); @@ -1269,21 +1270,41 @@ static void AttachmentTest(void) hr = IDirectDraw7_CreateSurface(lpDD, &ddsd, &surface4, NULL); ok(hr==DD_OK,"CreateSurface returned: %x\n",hr); + if (SUCCEEDED(IDirectDrawSurface7_AddAttachedSurface(surface1, surface4))) + refrast = TRUE; + hr = IDirectDrawSurface7_AddAttachedSurface(surface1, surface4); /* Succeeds on refrast */ - ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 16x16 offscreen plain surface to a 128x128 texture root returned %08x\n", hr); + if (refrast) + ok(hr == S_OK, "Attaching a 16x16 offscreen plain surface to a 128x128 texture root returned %08x\n", hr); + else + ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 16x16 offscreen plain surface to a 128x128 texture root returned %08x\n", hr); if(SUCCEEDED(hr)) IDirectDrawSurface7_DeleteAttachedSurface(surface1, 0, surface4); + hr = IDirectDrawSurface7_AddAttachedSurface(surface4, surface1); /* Succeeds on refrast */ - ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 128x128 texture root to a 16x16 offscreen plain surface returned %08x\n", hr); + if (refrast) + ok(hr == S_OK, "Attaching a 128x128 texture root to a 16x16 offscreen plain surface returned %08x\n", hr); + else + ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 128x128 texture root to a 16x16 offscreen plain surface returned %08x\n", hr); if(SUCCEEDED(hr)) IDirectDrawSurface7_DeleteAttachedSurface(surface1, 0, surface1); + hr = IDirectDrawSurface7_AddAttachedSurface(surface3, surface4); /* Succeeds on refrast */ - ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 16x16 offscreen plain surface to a 32x32 texture mip level returned %08x\n", hr); + if (refrast) + ok(hr == S_OK, "Attaching a 16x16 offscreen plain surface to a 32x32 texture mip level returned %08x\n", hr); + else + ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 16x16 offscreen plain surface to a 32x32 texture mip level returned %08x\n", hr); if(SUCCEEDED(hr)) IDirectDrawSurface7_DeleteAttachedSurface(surface3, 0, surface4); + hr = IDirectDrawSurface7_AddAttachedSurface(surface4, surface3); ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 32x32 texture mip level to a 16x16 offscreen plain surface returned %08x\n", hr); if(SUCCEEDED(hr)) IDirectDrawSurface7_DeleteAttachedSurface(surface4, 0, surface3); + hr = IDirectDrawSurface7_AddAttachedSurface(surface2, surface4); /* Succeeds on refrast */ - ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 16x16 offscreen plain surface to a 64x64 texture sublevel returned %08x\n", hr); + if (refrast) + ok(hr == S_OK, "Attaching a 16x16 offscreen plain surface to a 64x64 texture sublevel returned %08x\n", hr); + else + ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 16x16 offscreen plain surface to a 64x64 texture sublevel returned %08x\n", hr); if(SUCCEEDED(hr)) IDirectDrawSurface7_DeleteAttachedSurface(surface2, 0, surface4); + hr = IDirectDrawSurface7_AddAttachedSurface(surface4, surface2); ok(hr == DDERR_CANNOTATTACHSURFACE, "Attaching a 64x64 texture sublevel to a 16x16 offscreen plain surface returned %08x\n", hr); if(SUCCEEDED(hr)) IDirectDrawSurface7_DeleteAttachedSurface(surface4, 0, surface2);
1
0
0
0
James Hawkins : kernel32: Fix a test that fails in win2k3.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: ed714d09b70f3945386e3cb3118add0874fe2b5e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ed714d09b70f3945386e3cb31…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Thu Apr 24 22:50:45 2008 -0500 kernel32: Fix a test that fails in win2k3. --- dlls/kernel32/tests/sync.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/tests/sync.c b/dlls/kernel32/tests/sync.c index 61b8521..b5778fc 100644 --- a/dlls/kernel32/tests/sync.c +++ b/dlls/kernel32/tests/sync.c @@ -370,11 +370,17 @@ static void test_iocp_callback(void) ret = DeleteFileA(filename); ok( ret, "DeleteFileA: error %d\n", GetLastError()); + /* win2k3 requires the Flags parameter to be zero */ + SetLastError(0xdeadbeef); hFile = CreateFileA(filename, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_FLAG_RANDOM_ACCESS | FILE_FLAG_OVERLAPPED, 0); ok(hFile != INVALID_HANDLE_VALUE, "CreateFileA: error %d\n", GetLastError()); retb = p_BindIoCompletionCallback(hFile, iocp_callback, 12345); - ok(retb == TRUE, "BindIoCompletionCallback failed with Flags != 0\n"); + if (!retb) + ok(GetLastError() == ERROR_INVALID_PARAMETER, + "Expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError()); + else + ok(retb == TRUE, "BindIoCompletionCallback failed with Flags != 0\n"); ret = CloseHandle(hFile); ok( ret, "CloseHandle: error %d\n", GetLastError()); ret = DeleteFileA(filename);
1
0
0
0
Alistair Leslie-Hughes : msxml3: Corrected transformNode.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 42db8b439fcd75d53fbd06f170e460dae92e1461 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=42db8b439fcd75d53fbd06f17…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Thu Apr 24 22:22:14 2008 +1000 msxml3: Corrected transformNode. --- dlls/msxml3/node.c | 44 +++++++++++++++++++++++++++++++++----------- dlls/msxml3/tests/domdoc.c | 22 +++++++++++++++++----- 2 files changed, 50 insertions(+), 16 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index 246598d..f67a9f9 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -44,6 +44,10 @@ # include <libxslt/xsltInternals.h> #endif +#ifdef HAVE_LIBXML2 +# include <libxml/HTMLtree.h> +#endif + #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(msxml); @@ -1065,21 +1069,39 @@ static HRESULT WINAPI xmlnode_transformNode( result = xsltApplyStylesheet(xsltSS, This->node->doc, NULL); if(result) { - xmlBufferPtr pXmlBuf; - int nSize; + const xmlChar *pContent; - pXmlBuf = xmlBufferCreate(); - if(pXmlBuf) + if(result->type == XML_HTML_DOCUMENT_NODE) { - nSize = xmlNodeDump(pXmlBuf, NULL, (xmlNodePtr)result, 0, 0); - if(nSize > 0) + xmlOutputBufferPtr pOutput = xmlAllocOutputBuffer(NULL); + if(pOutput) { - const xmlChar *pContent; - - pContent = xmlBufferContent(pXmlBuf); - *xmlString = bstr_from_xmlChar(pContent); + htmlDocContentDumpOutput(pOutput, result->doc, NULL); + if(pOutput) + { + pContent = xmlBufferContent(pOutput->buffer); + *xmlString = bstr_from_xmlChar(pContent); + } + + xmlOutputBufferClose(pOutput); + } + } + else + { + xmlBufferPtr pXmlBuf; + int nSize; - xmlBufferFree(pXmlBuf); + pXmlBuf = xmlBufferCreate(); + if(pXmlBuf) + { + nSize = xmlNodeDump(pXmlBuf, NULL, (xmlNodePtr)result, 0, 0); + if(nSize > 0) + { + pContent = xmlBufferContent(pXmlBuf); + *xmlString = bstr_from_xmlChar(pContent); + + xmlBufferFree(pXmlBuf); + } } } } diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 9d84435..072ed2f 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -143,10 +143,9 @@ static const CHAR szTransformSSXML[] = "</xsl:stylesheet>"; static const CHAR szTransformOutput[] = -"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n" -"<html><body><h1>\n" -"Hello World\n" -"</h1></body></html>\n"; +"<html><body><h1>" +"Hello World" +"</h1></body></html>"; static const WCHAR szNonExistentFile[] = { 'c', ':', '\\', 'N', 'o', 'n', 'e', 'x', 'i', 's', 't', 'e', 'n', 't', '.', 'x', 'm', 'l', 0 @@ -242,6 +241,19 @@ static VARIANT _variantbstr_(const char *str) return v; } +static BOOL compareIgnoreReturns(BSTR sLeft, BSTR sRight) +{ + for (;;) + { + while (*sLeft == '\r' || *sLeft == '\n') sLeft++; + while (*sRight == '\r' || *sRight == '\n') sRight++; + if (*sLeft != *sRight) return FALSE; + if (!*sLeft) return TRUE; + sLeft++; + sRight++; + } +} + static void get_str_for_type(DOMNodeType type, char *buf) { switch (type) @@ -3193,7 +3205,7 @@ static void test_testTransforms(void) hr = IXMLDOMDocument_transformNode(doc, pNode, &bOut); ok(hr == S_OK, "ret %08x\n", hr ); - ok( !lstrcmpW( bOut, _bstr_(szTransformOutput) ), "Stylesheet output not correct\n"); + ok( compareIgnoreReturns( bOut, _bstr_(szTransformOutput)), "Stylesheet output not correct\n"); IXMLDOMNode_Release(pNode); }
1
0
0
0
Jeff Zaroyko : msadp32.acm: Use the same szShortName value as windows.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: 9c8c33006e53ecd3e7bfb1932313a1f7c9f13999 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9c8c33006e53ecd3e7bfb1932…
Author: Jeff Zaroyko <jeffz(a)jeffz.name> Date: Fri Apr 25 15:22:17 2008 +1000 msadp32.acm: Use the same szShortName value as windows. --- dlls/msadp32.acm/msadp32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msadp32.acm/msadp32.c b/dlls/msadp32.acm/msadp32.c index 4918836..5a0a964 100644 --- a/dlls/msadp32.acm/msadp32.c +++ b/dlls/msadp32.acm/msadp32.c @@ -326,7 +326,7 @@ static LRESULT ADPCM_DriverDetails(PACMDRIVERDETAILSW add) add->cFormatTags = 2; /* PCM, MS ADPCM */ add->cFilterTags = 0; add->hicon = NULL; - MultiByteToWideChar( CP_ACP, 0, "WINE-MS ADPCM", -1, + MultiByteToWideChar( CP_ACP, 0, "MS-ADPCM", -1, add->szShortName, sizeof(add->szShortName)/sizeof(WCHAR) ); MultiByteToWideChar( CP_ACP, 0, "Wine MS ADPCM converter", -1, add->szLongName, sizeof(add->szLongName)/sizeof(WCHAR) );
1
0
0
0
Alexandre Julliard : winecfg: Allow to configure the desktop separately for each application.
by Alexandre Julliard
25 Apr '08
25 Apr '08
Module: wine Branch: master Commit: f0bd1ee70b3affcc822f1d508f5c602040b63f32 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f0bd1ee70b3affcc822f1d508…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Apr 25 14:36:45 2008 +0200 winecfg: Allow to configure the desktop separately for each application. --- programs/winecfg/x11drvdlg.c | 119 ++++++++++++++++++++++------------------- 1 files changed, 64 insertions(+), 55 deletions(-) diff --git a/programs/winecfg/x11drvdlg.c b/programs/winecfg/x11drvdlg.c index c0ec058..ce54924 100644 --- a/programs/winecfg/x11drvdlg.c +++ b/programs/winecfg/x11drvdlg.c @@ -28,6 +28,7 @@ #include <stdio.h> #include <windows.h> +#include <wine/unicode.h> #include <wine/debug.h> #include "resource.h" @@ -45,6 +46,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(winecfg); static const WCHAR logpixels_reg[] = {'S','y','s','t','e','m','\\','C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\','H','a','r','d','w','a','r','e',' ','P','r','o','f','i','l','e','s','\\','C','u','r','r','e','n','t','\\','S','o','f','t','w','a','r','e','\\','F','o','n','t','s',0}; static const WCHAR logpixels[] = {'L','o','g','P','i','x','e','l','s',0}; +static const WCHAR desktopW[] = {'D','e','s','k','t','o','p',0}; +static const WCHAR defaultW[] = {'D','e','f','a','u','l','t',0}; +static const WCHAR explorerW[] = {'E','x','p','l','o','r','e','r',0}; +static const WCHAR explorer_desktopsW[] = {'E','x','p','l','o','r','e','r','\\', + 'D','e','s','k','t','o','p','s',0}; +static const WCHAR x11_driverW[] = {'X','1','1',' ','D','r','i','v','e','r',0}; +static const WCHAR default_resW[] = {'8','0','0','x','6','0','0',0}; + + static struct SHADERMODE { UINT displayStrID; @@ -58,64 +68,55 @@ static struct SHADERMODE int updating_ui; -static void update_gui_for_desktop_mode(HWND dialog) { - int desktopenabled = FALSE; +/* convert the x11 desktop key to the new explorer config */ +static void convert_x11_desktop_key(void) +{ + char *buf; + + if (!(buf = get_reg_key(config_key, "X11 Driver", "Desktop", NULL))) return; + set_reg_key(config_key, "Explorer\\Desktops", "Default", buf); + set_reg_key(config_key, "Explorer", "Desktop", "Default"); + set_reg_key(config_key, "X11 Driver", "Desktop", NULL); + HeapFree(GetProcessHeap(), 0, buf); +} + +static void update_gui_for_desktop_mode(HWND dialog) +{ + WCHAR *buf, *bufindex; + const WCHAR *desktop_name = current_app ? current_app : defaultW; WINE_TRACE("\n"); updating_ui = TRUE; - if (current_app) + buf = get_reg_keyW(config_key, explorer_desktopsW, desktop_name, NULL); + if (buf && (bufindex = strchrW(buf, 'x'))) { - disable(IDC_ENABLE_DESKTOP); - disable(IDC_DESKTOP_WIDTH); - disable(IDC_DESKTOP_HEIGHT); - disable(IDC_DESKTOP_SIZE); - disable(IDC_DESKTOP_BY); - return; + *bufindex = 0; + ++bufindex; + SetWindowTextW(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), buf); + SetWindowTextW(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), bufindex); + } else { + SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), "800"); + SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), "600"); } - enable(IDC_ENABLE_DESKTOP); + HeapFree(GetProcessHeap(), 0, buf); /* do we have desktop mode enabled? */ - if (reg_key_exists(config_key, keypath("X11 Driver"), "Desktop")) + if (reg_key_exists(config_key, keypath("Explorer"), "Desktop")) { - char* buf, *bufindex; CheckDlgButton(dialog, IDC_ENABLE_DESKTOP, BST_CHECKED); - - buf = get_reg_key(config_key, keypath("X11 Driver"), "Desktop", "800x600"); - /* note: this test must match the one in x11drv */ - if( buf[0] != 'n' && buf[0] != 'N' && buf[0] != 'F' && buf[0] != 'f' - && buf[0] != '0') { - desktopenabled = TRUE; - enable(IDC_DESKTOP_WIDTH); - enable(IDC_DESKTOP_HEIGHT); - enable(IDC_DESKTOP_SIZE); - enable(IDC_DESKTOP_BY); - - bufindex = strchr(buf, 'x'); - if (bufindex) { - *bufindex = 0; - ++bufindex; - SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), buf); - SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), bufindex); - } else { - WINE_TRACE("Desktop registry entry is malformed\n"); - SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), "800"); - SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), "600"); - } - } - HeapFree(GetProcessHeap(), 0, buf); + enable(IDC_DESKTOP_WIDTH); + enable(IDC_DESKTOP_HEIGHT); + enable(IDC_DESKTOP_SIZE); + enable(IDC_DESKTOP_BY); } - if (!desktopenabled) + else { CheckDlgButton(dialog, IDC_ENABLE_DESKTOP, BST_UNCHECKED); - disable(IDC_DESKTOP_WIDTH); disable(IDC_DESKTOP_HEIGHT); disable(IDC_DESKTOP_SIZE); disable(IDC_DESKTOP_BY); - - SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_WIDTH), ""); - SetWindowText(GetDlgItem(dialog, IDC_DESKTOP_HEIGHT), ""); } updating_ui = FALSE; @@ -126,6 +127,7 @@ static void init_dialog(HWND dialog) unsigned int it; char* buf; + convert_x11_desktop_key(); update_gui_for_desktop_mode(dialog); updating_ui = TRUE; @@ -182,30 +184,37 @@ static void init_dialog(HWND dialog) updating_ui = FALSE; } -static void set_from_desktop_edits(HWND dialog) { - char *width, *height, *new; +static void set_from_desktop_edits(HWND dialog) +{ + static const WCHAR x[] = {'x',0}; + static const WCHAR def_width[] = {'8','0','0',0}; + static const WCHAR def_height[] = {'6','0','0',0}; + WCHAR *width, *height, *new; + const WCHAR *desktop_name = current_app ? current_app : defaultW; if (updating_ui) return; WINE_TRACE("\n"); - width = get_text(dialog, IDC_DESKTOP_WIDTH); - height = get_text(dialog, IDC_DESKTOP_HEIGHT); + width = get_textW(dialog, IDC_DESKTOP_WIDTH); + height = get_textW(dialog, IDC_DESKTOP_HEIGHT); - if (width == NULL || strcmp(width, "") == 0) { + if (!width || !width[0]) { HeapFree(GetProcessHeap(), 0, width); - width = strdupA("800"); + width = strdupW(def_width); } - - if (height == NULL || strcmp(height, "") == 0) { + if (!height || !height[0]) { HeapFree(GetProcessHeap(), 0, height); - height = strdupA("600"); + height = strdupW(def_height); } - new = HeapAlloc(GetProcessHeap(), 0, strlen(width) + strlen(height) + 2 /* x + terminator */); - sprintf(new, "%sx%s", width, height); - set_reg_key(config_key, keypath("X11 Driver"), "Desktop", new); - + new = HeapAlloc(GetProcessHeap(), 0, (strlenW(width) + strlenW(height) + 2) * sizeof(WCHAR)); + strcpyW( new, width ); + strcatW( new, x ); + strcatW( new, height ); + set_reg_keyW(config_key, explorer_desktopsW, desktop_name, new); + set_reg_keyW(config_key, keypathW(explorerW), desktopW, desktop_name); + HeapFree(GetProcessHeap(), 0, width); HeapFree(GetProcessHeap(), 0, height); HeapFree(GetProcessHeap(), 0, new); @@ -217,7 +226,7 @@ static void on_enable_desktop_clicked(HWND dialog) { if (IsDlgButtonChecked(dialog, IDC_ENABLE_DESKTOP) == BST_CHECKED) { set_from_desktop_edits(dialog); } else { - set_reg_key(config_key, keypath("X11 Driver"), "Desktop", NULL); + set_reg_key(config_key, keypath("Explorer"), "Desktop", NULL); } update_gui_for_desktop_mode(dialog);
1
0
0
0
← Newer
1
...
16
17
18
19
20
21
22
...
128
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Results per page:
10
25
50
100
200