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
March 2009
----- 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
834 discussions
Start a n
N
ew thread
Paul Vriens : shlwapi/tests: Fix a typo.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 1b4e61c07accf4f85eadfaa6940d868ebf7c0fee URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1b4e61c07accf4f85eadfaa69…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Tue Mar 3 09:46:25 2009 +0100 shlwapi/tests: Fix a typo. --- dlls/shlwapi/tests/path.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c index 86c8198..89a61c3 100644 --- a/dlls/shlwapi/tests/path.c +++ b/dlls/shlwapi/tests/path.c @@ -396,7 +396,7 @@ static void test_PathCombineW(void) broken(wszString[0] = 'a'), /* Win95 and some W2K */ "Expected a NULL return\n"); ok (wszString2[0] == 0 || - broken(wszString[0] = 'a'), /* Win95 and some W2K */ + broken(wszString2[0] = 'a'), /* Win95 and some W2K */ "Destination string not empty\n"); HeapFree(GetProcessHeap(), 0, wszString2);
1
0
0
0
Paul Vriens : msi/tests: Fix a test failure on Win95.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: fca26267682f3cdb4a014273ea3233ad678afb08 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fca26267682f3cdb4a014273e…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Tue Mar 3 08:43:26 2009 +0100 msi/tests: Fix a test failure on Win95. --- dlls/msi/tests/package.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 46fde5a..ee8af39 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -7775,6 +7775,12 @@ static void test_appsearch_reglocator(void) ok(!lstrcmpA(prop, "#-42"), "Expected \"#-42\", got \"%s\"\n", prop); size = ExpandEnvironmentStringsA("%PATH%", NULL, 0); + if (size == 0 && GetLastError() == ERROR_INVALID_PARAMETER) + { + /* Workaround for Win95 */ + CHAR tempbuf[1]; + size = ExpandEnvironmentStringsA("%PATH%", tempbuf, 0); + } pathvar = HeapAlloc(GetProcessHeap(), 0, size); ExpandEnvironmentStringsA("%PATH%", pathvar, size);
1
0
0
0
Ken Thomases : dsound: Don't use HEAP_ZERO_MEMORY when we' re about to overwrite the buffer.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: f85a7b16cab608ac1daa1881857a172d2cf29dd6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f85a7b16cab608ac1daa18818…
Author: Ken Thomases <ken(a)codeweavers.com> Date: Mon Mar 2 23:17:00 2009 -0600 dsound: Don't use HEAP_ZERO_MEMORY when we're about to overwrite the buffer. --- dlls/dsound/buffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c index 688ad71..251c436 100644 --- a/dlls/dsound/buffer.c +++ b/dlls/dsound/buffer.c @@ -118,7 +118,7 @@ static HRESULT WINAPI IDirectSoundNotifyImpl_SetNotificationPositions( /* Make an internal copy of the caller-supplied array. * Replace the existing copy if one is already present. */ HeapFree(GetProcessHeap(), 0, This->dsb->notifies); - This->dsb->notifies = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, + This->dsb->notifies = HeapAlloc(GetProcessHeap(), 0, howmuch * sizeof(DSBPOSITIONNOTIFY)); if (This->dsb->notifies == NULL) {
1
0
0
0
Francois Gouget : sane.ds: Fix compilation with older SANE headers.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 4dc89871127d220f4764939841653a4f7c2be297 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4dc89871127d220f476493984…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Tue Mar 3 00:16:10 2009 +0100 sane.ds: Fix compilation with older SANE headers. --- dlls/sane.ds/capability.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c index aacc6de..17005cc 100644 --- a/dlls/sane.ds/capability.c +++ b/dlls/sane.ds/capability.c @@ -31,6 +31,16 @@ WINE_DEFAULT_DEBUG_CHANNEL(twain); +#ifndef SANE_VALUE_SCAN_MODE_COLOR +#define SANE_VALUE_SCAN_MODE_COLOR SANE_I18N("Color") +#endif +#ifndef SANE_VALUE_SCAN_MODE_GRAY +#define SANE_VALUE_SCAN_MODE_GRAY SANE_I18N("Gray") +#endif +#ifndef SANE_VALUE_SCAN_MODE_LINEART +#define SANE_VALUE_SCAN_MODE_LINEART SANE_I18N("Lineart") +#endif + static TW_UINT16 get_onevalue(pTW_CAPABILITY pCapability, TW_UINT16 *type, TW_UINT32 *value) { if (pCapability->hContainer)
1
0
0
0
Jeremy White : sane.ds: Implement grayscale and B&W scanning for native image transfers.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 2c0fea94e8b8a6f868c1db6066043b9e915d2ca5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2c0fea94e8b8a6f868c1db606…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Mon Mar 2 17:08:11 2009 -0600 sane.ds: Implement grayscale and B&W scanning for native image transfers. --- dlls/sane.ds/capability.c | 11 ++++++--- dlls/sane.ds/ds_image.c | 47 ++++++++++++++++++++++++++++++++++++++------ 2 files changed, 47 insertions(+), 11 deletions(-) diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c index 63a8361..aacc6de 100644 --- a/dlls/sane.ds/capability.c +++ b/dlls/sane.ds/capability.c @@ -685,9 +685,11 @@ static TW_UINT16 SANE_ICAPResolution (pTW_CAPABILITY pCapability, TW_UINT16 acti /* ICAP_PIXELFLAVOR */ static TW_UINT16 SANE_ICAPPixelFlavor (pTW_CAPABILITY pCapability, TW_UINT16 action) { + TW_UINT16 twCC = TWCC_BADCAP; +#ifdef SONAME_LIBSANE static const TW_UINT32 possible_values[] = { TWPF_CHOCOLATE, TWPF_VANILLA }; TW_UINT32 val; - TW_UINT16 twCC = TWCC_BADCAP; + TW_UINT32 flavor = activeDS.sane_param.depth == 1 ? TWPF_VANILLA : TWPF_CHOCOLATE; TRACE("ICAP_PIXELFLAVOR\n"); @@ -700,7 +702,7 @@ static TW_UINT16 SANE_ICAPPixelFlavor (pTW_CAPABILITY pCapability, TW_UINT16 act case MSG_GET: twCC = msg_get_enum(pCapability, possible_values, sizeof(possible_values) / sizeof(possible_values[0]), - TWTY_UINT16, TWPF_CHOCOLATE, TWPF_CHOCOLATE); + TWTY_UINT16, flavor, flavor); break; case MSG_SET: @@ -712,16 +714,17 @@ static TW_UINT16 SANE_ICAPPixelFlavor (pTW_CAPABILITY pCapability, TW_UINT16 act break; case MSG_GETDEFAULT: - twCC = set_onevalue(pCapability, TWTY_UINT16, TWPF_CHOCOLATE); + twCC = set_onevalue(pCapability, TWTY_UINT16, flavor); break; case MSG_RESET: /* .. fall through intentional .. */ case MSG_GETCURRENT: - twCC = set_onevalue(pCapability, TWTY_UINT16, TWPF_CHOCOLATE); + twCC = set_onevalue(pCapability, TWTY_UINT16, flavor); break; } +#endif return twCC; } diff --git a/dlls/sane.ds/ds_image.c b/dlls/sane.ds/ds_image.c index 38689da..a78ec4e 100644 --- a/dlls/sane.ds/ds_image.c +++ b/dlls/sane.ds/ds_image.c @@ -142,7 +142,10 @@ TW_UINT16 SANE_ImageInfoGet (pTW_IDENTITY pOrigin, pImageInfo->Planar = TRUE; pImageInfo->SamplesPerPixel = 1; pImageInfo->BitsPerSample[0] = activeDS.sane_param.depth; - pImageInfo->PixelType = TWPT_GRAY; + if (activeDS.sane_param.depth == 1) + pImageInfo->PixelType = TWPT_BW; + else + pImageInfo->PixelType = TWPT_GRAY; } else { @@ -366,7 +369,10 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, int dib_bytes; int dib_bytes_per_line; BYTE *line; + RGBQUAD *colors; + int color_size = 0; int i; + BYTE *p; TRACE("DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET\n"); @@ -397,9 +403,23 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, return TWRC_FAILURE; } - if (activeDS.sane_param.format != SANE_FRAME_RGB) + if (activeDS.sane_param.format == SANE_FRAME_GRAY) { - FIXME("For NATIVE, we support only RGB, not %d\n", activeDS.sane_param.format); + if (activeDS.sane_param.depth == 8) + color_size = (1 << 8) * sizeof(*colors); + else if (activeDS.sane_param.depth == 1) + ; + else + { + FIXME("For NATIVE, we support only 1 bit monochrome and 8 bit Grayscale, not %d\n", activeDS.sane_param.depth); + psane_cancel (activeDS.deviceHandle); + activeDS.twCC = TWCC_OPERATIONERROR; + return TWRC_FAILURE; + } + } + else if (activeDS.sane_param.format != SANE_FRAME_RGB) + { + FIXME("For NATIVE, we support only GRAY and RGB, not %d\n", activeDS.sane_param.format); psane_cancel (activeDS.deviceHandle); activeDS.twCC = TWCC_OPERATIONERROR; return TWRC_FAILURE; @@ -413,7 +433,7 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, dib_bytes_per_line = ((activeDS.sane_param.bytes_per_line + 3) / 4) * 4; dib_bytes = activeDS.sane_param.lines * dib_bytes_per_line; - hDIB = GlobalAlloc(GMEM_ZEROINIT, dib_bytes + sizeof(*header)); + hDIB = GlobalAlloc(GMEM_ZEROINIT, dib_bytes + sizeof(*header) + color_size); if (hDIB) header = GlobalLock(hDIB); @@ -430,18 +450,31 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, header->biWidth = activeDS.sane_param.pixels_per_line; header->biHeight = activeDS.sane_param.lines; header->biPlanes = 1; - header->biBitCount = activeDS.sane_param.depth * 3; header->biCompression = BI_RGB; + if (activeDS.sane_param.format == SANE_FRAME_RGB) + header->biBitCount = activeDS.sane_param.depth * 3; + if (activeDS.sane_param.format == SANE_FRAME_GRAY) + header->biBitCount = activeDS.sane_param.depth; header->biSizeImage = dib_bytes; header->biXPelsPerMeter = 0; header->biYPelsPerMeter = 0; header->biClrUsed = 0; header->biClrImportant = 0; + p = (BYTE *)(header + 1); + + if (color_size > 0) + { + colors = (RGBQUAD *) p; + p += color_size; + for (i = 0; i < (color_size / sizeof(*colors)); i++) + colors[i].rgbBlue = colors[i].rgbRed = colors[i].rgbGreen = i; + } + + /* Sane returns data in top down order. Acrobat does best with a bottom up DIB being returned. */ - line = (BYTE *)(header + 1) + - (activeDS.sane_param.lines - 1) * dib_bytes_per_line; + line = p + (activeDS.sane_param.lines - 1) * dib_bytes_per_line; for (i = activeDS.sane_param.lines - 1; i >= 0; i--) { activeDS.progressWnd = ScanningDialogBox(activeDS.progressWnd,
1
0
0
0
Jeremy White : sane.ds: Add a few trace messages useful in following color format.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 1d58b7e1ccb12a3185790c9e67e461eaa722bd79 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1d58b7e1ccb12a3185790c9e6…
Author: Jeremy White <jwhite(a)winehq.org> Date: Mon Mar 2 16:48:10 2009 -0600 sane.ds: Add a few trace messages useful in following color format. --- dlls/sane.ds/capability.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c index 0604734..63a8361 100644 --- a/dlls/sane.ds/capability.c +++ b/dlls/sane.ds/capability.c @@ -386,6 +386,7 @@ static TW_UINT16 SANE_ICAPPixelType (pTW_CAPABILITY pCapability, TW_UINT16 actio twCC = msg_set(pCapability, &val); if (twCC == TWCC_SUCCESS) { + TRACE("Setting pixeltype to %d\n", val); if (! pixeltype_to_sane_mode(val, mode, sizeof(mode))) return TWCC_BADVALUE; @@ -430,6 +431,7 @@ static TW_UINT16 SANE_ICAPPixelType (pTW_CAPABILITY pCapability, TW_UINT16 actio case MSG_GETCURRENT: twCC = set_onevalue(pCapability, TWTY_UINT16, current_pixeltype); + TRACE("Returning current pixeltype of %d\n", current_pixeltype); break; } @@ -507,6 +509,7 @@ static TW_UINT16 SANE_ICAPBitDepth(pTW_CAPABILITY pCapability, TW_UINT16 action) /* .. Fall through intentional .. */ case MSG_GETCURRENT: + TRACE("Returning current bitdepth of %d\n", activeDS.sane_param.depth); twCC = set_onevalue(pCapability, TWTY_UINT16, activeDS.sane_param.depth); break; }
1
0
0
0
Jeremy White : sane.ds: Downgrade inappropriate FIXMEs.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 29df24600571f19d48fa2c0c7d7c7568317522c0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=29df24600571f19d48fa2c0c7…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Mon Mar 2 16:47:47 2009 -0600 sane.ds: Downgrade inappropriate FIXMEs. --- dlls/sane.ds/sane_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/sane.ds/sane_main.c b/dlls/sane.ds/sane_main.c index 3bd231e..49a7cb3 100644 --- a/dlls/sane.ds/sane_main.c +++ b/dlls/sane.ds/sane_main.c @@ -656,7 +656,7 @@ static TW_UINT16 SANE_OpenDS( pTW_IDENTITY pOrigin, pTW_IDENTITY self) { break; } if (!sane_devlist[i]) { - FIXME("Scanner not found.\n"); + WARN("Scanner not found.\n"); return TWRC_FAILURE; } status = psane_open(sane_devlist[i]->name,&activeDS.deviceHandle); @@ -665,7 +665,7 @@ static TW_UINT16 SANE_OpenDS( pTW_IDENTITY pOrigin, pTW_IDENTITY self) { activeDS.twCC = TWRC_SUCCESS; return TWRC_SUCCESS; } - FIXME("sane_open(%s): %s\n", sane_devlist[i]->name, psane_strstatus (status)); + ERR("sane_open(%s): %s\n", sane_devlist[i]->name, psane_strstatus (status)); return TWRC_FAILURE; } #endif
1
0
0
0
Michael Stefaniuc : regedit: Cast to LPARAM the 4th argument passed to SendMessage.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 3c80f741c2d37c471e86531da2edaf3bcfa41db2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3c80f741c2d37c471e86531da…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Mar 2 23:33:19 2009 +0100 regedit: Cast to LPARAM the 4th argument passed to SendMessage. --- programs/regedit/framewnd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c index 6c8745e..d88ef0e 100644 --- a/programs/regedit/framewnd.c +++ b/programs/regedit/framewnd.c @@ -87,7 +87,7 @@ static void OnEnterMenuLoop(HWND hWnd) /* Update the status bar pane sizes */ nParts = -1; - SendMessageW(hStatusBar, SB_SETPARTS, 1, (long)&nParts); + SendMessageW(hStatusBar, SB_SETPARTS, 1, (LPARAM)&nParts); bInMenuLoop = TRUE; SendMessageW(hStatusBar, SB_SETTEXTW, 0, (LPARAM)&empty); }
1
0
0
0
Michael Stefaniuc : taskmgr: Cast to LPARAM the 4th argument passed to SendMessage.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: 87b15bb9fd1753993d169f610bca579db683667b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=87b15bb9fd1753993d169f610…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Mar 2 23:26:51 2009 +0100 taskmgr: Cast to LPARAM the 4th argument passed to SendMessage. Casting to long would truncate the pointers when compiling with MSVC for Win64. --- programs/taskmgr/taskmgr.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c index 8ba832e..b30ed8e 100644 --- a/programs/taskmgr/taskmgr.c +++ b/programs/taskmgr/taskmgr.c @@ -151,7 +151,7 @@ static BOOL OnCreate(HWND hWnd) nParts[0] = 100; nParts[1] = 210; nParts[2] = 400; - SendMessageW(hStatusWnd, SB_SETPARTS, 3, (long)nParts); + SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM)nParts); /* Create tab pages */ hTabWnd = GetDlgItem(hWnd, IDC_TAB); @@ -518,7 +518,7 @@ static void TaskManager_OnEnterMenuLoop(HWND hWnd) /* Update the status bar pane sizes */ nParts = -1; - SendMessageW(hStatusWnd, SB_SETPARTS, 1, (long)&nParts); + SendMessageW(hStatusWnd, SB_SETPARTS, 1, (LPARAM)&nParts); bInMenuLoop = TRUE; SendMessageW(hStatusWnd, SB_SETTEXTW, 0, 0); } @@ -538,7 +538,7 @@ static void TaskManager_OnExitMenuLoop(HWND hWnd) nParts[0] = 100; nParts[1] = 210; nParts[2] = rc.right; - SendMessageW(hStatusWnd, SB_SETPARTS, 3, (long)nParts); + SendMessageW(hStatusWnd, SB_SETPARTS, 3, (LPARAM)nParts); SendMessageW(hStatusWnd, SB_SETTEXT, 0, 0); wsprintfW(text, wszCPU_Usage, PerfDataGetProcessorUsage()); SendMessageW(hStatusWnd, SB_SETTEXTW, 1, (LPARAM)text);
1
0
0
0
Jacek Caban : urlmon: Use pluggable protocol for ftp binding.
by Alexandre Julliard
03 Mar '09
03 Mar '09
Module: wine Branch: master Commit: e18e6ba3d8d7edb286dde64b2f6e22bc83e6b474 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e18e6ba3d8d7edb286dde64b2…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Mar 2 19:58:07 2009 +0100 urlmon: Use pluggable protocol for ftp binding. --- dlls/urlmon/umon.c | 65 ++++++++++----------------------------------------- 1 files changed, 13 insertions(+), 52 deletions(-) diff --git a/dlls/urlmon/umon.c b/dlls/urlmon/umon.c index bbaed5b..c338b15 100644 --- a/dlls/urlmon/umon.c +++ b/dlls/urlmon/umon.c @@ -532,8 +532,6 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc, if(SUCCEEDED(hres)) { URL_COMPONENTSW url; WCHAR *host, *path, *user, *pass; - DWORD dwService = 0; - BOOL bSuccess; TRACE("got bindinfo. bindf = %08x extrainfo = %s bindinfof = %08x bindverb = %08x iid %s\n", bindf, debugstr_w(bi.szExtraInfo), bi.grfBindInfoF, bi.dwBindVerb, debugstr_guid(&bi.iid)); @@ -583,23 +581,10 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc, break; } - switch ((DWORD) url.nScheme) - { - case INTERNET_SCHEME_FTP: - if (!url.nPort) - url.nPort = INTERNET_DEFAULT_FTP_PORT; - dwService = INTERNET_SERVICE_FTP; - break; - - case INTERNET_SCHEME_GOPHER: - if (!url.nPort) - url.nPort = INTERNET_DEFAULT_GOPHER_PORT; - dwService = INTERNET_SERVICE_GOPHER; - break; - } - + if (!url.nPort) + url.nPort = INTERNET_DEFAULT_GOPHER_PORT; bind->hconnect = InternetConnectW(bind->hinternet, host, url.nPort, user, pass, - dwService, 0, (DWORD_PTR)bind); + INTERNET_SERVICE_GOPHER, 0, (DWORD_PTR)bind); if (!bind->hconnect) { hres = HRESULT_FROM_WIN32(GetLastError()); @@ -612,37 +597,12 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc, hres = IBindStatusCallback_OnProgress(bind->pbscb, 0, 0, BINDSTATUS_CONNECTING, NULL); hres = IBindStatusCallback_OnProgress(bind->pbscb, 0, 0, BINDSTATUS_SENDINGREQUEST, NULL); - bSuccess = FALSE; - - switch (dwService) - { - case INTERNET_SERVICE_GOPHER: - bind->hrequest = GopherOpenFileW(bind->hconnect, - path, - 0, - INTERNET_FLAG_RELOAD, - 0); - if (bind->hrequest) - bSuccess = TRUE; - else - hres = HRESULT_FROM_WIN32(GetLastError()); - break; - - case INTERNET_SERVICE_FTP: - bind->hrequest = FtpOpenFileW(bind->hconnect, - path, - GENERIC_READ, - FTP_TRANSFER_TYPE_BINARY | - INTERNET_FLAG_TRANSFER_BINARY | - INTERNET_FLAG_RELOAD, - 0); - if (bind->hrequest) - bSuccess = TRUE; - else - hres = HRESULT_FROM_WIN32(GetLastError()); - break; - } - if(bSuccess) + bind->hrequest = GopherOpenFileW(bind->hconnect, + path, + 0, + INTERNET_FLAG_RELOAD, + 0); + if (bind->hrequest) { TRACE("res = %d gle = %u url len = %d\n", hres, GetLastError(), bind->expected_size); @@ -660,7 +620,10 @@ static HRESULT URLMonikerImpl_BindToStorage_hack(LPCWSTR URLName, IBindCtx* pbc, } InternetCloseHandle(bind->hrequest); hres = S_OK; + }else { + hres = HRESULT_FROM_WIN32(GetLastError()); } + InternetCloseHandle(bind->hconnect); InternetCloseHandle(bind->hinternet); @@ -704,9 +667,7 @@ static HRESULT WINAPI URLMonikerImpl_BindToStorage(IMoniker* iface, return E_FAIL; } - if(IsEqualGUID(&IID_IStream, riid) && - ( url.nScheme == INTERNET_SCHEME_FTP - || url.nScheme == INTERNET_SCHEME_GOPHER)) + if(IsEqualGUID(&IID_IStream, riid) && url.nScheme == INTERNET_SCHEME_GOPHER) return URLMonikerImpl_BindToStorage_hack(This->URLName, pbc, ppvObject); TRACE("(%p)->(%p %p %s %p)\n", This, pbc, pmkToLeft, debugstr_guid(riid), ppvObject);
1
0
0
0
← Newer
1
...
72
73
74
75
76
77
78
...
84
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
Results per page:
10
25
50
100
200