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
June
May
April
March
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
February 2009
----- 2025 -----
June 2025
May 2025
April 2025
March 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
965 discussions
Start a n
N
ew thread
Aric Stewart : wininet: use debugstr_a in NETCON_getNextLine TRACE to avoid overflow on long lines .
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 32c3cf1db7747af1582235dc7c9ce12b9a3fb900 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=32c3cf1db7747af1582235dc7…
Author: Aric Stewart <aric(a)codeweavers.com> Date: Fri Feb 13 14:32:28 2009 -0600 wininet: use debugstr_a in NETCON_getNextLine TRACE to avoid overflow on long lines. --- dlls/wininet/netconnection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index c573407..ccf2928 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -659,7 +659,7 @@ BOOL NETCON_getNextLine(WININET_NETCONNECTION *connection, LPSTR lpszBuffer, LPD { lpszBuffer[nRecv++] = '\0'; *dwBuffer = nRecv; - TRACE(":%u %s\n", nRecv, lpszBuffer); + TRACE(":%u %s\n", nRecv, debugstr_a(lpszBuffer)); return TRUE; } if (lpszBuffer[nRecv] != '\r')
1
0
0
0
Jeremy White : sane.ds: Implement NATIVEXFER/MSG_GET for RGB scans.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: aaf83dc1b20d037195075580545127ba4dfd1606 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=aaf83dc1b20d0371950755805…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Fri Feb 13 13:14:58 2009 -0600 sane.ds: Implement NATIVEXFER/MSG_GET for RGB scans. --- dlls/sane.ds/ds_image.c | 132 ++++++++++++++++++++++++++++++++--------------- 1 files changed, 90 insertions(+), 42 deletions(-) diff --git a/dlls/sane.ds/ds_image.c b/dlls/sane.ds/ds_image.c index 5bb6cbb..38689da 100644 --- a/dlls/sane.ds/ds_image.c +++ b/dlls/sane.ds/ds_image.c @@ -327,6 +327,30 @@ TW_UINT16 SANE_ImageMemXferGet (pTW_IDENTITY pOrigin, #endif } +#ifdef SONAME_LIBSANE +static SANE_Status read_one_line(SANE_Handle h, BYTE *line, int len) +{ + int read_len; + SANE_Status status; + + for (;;) + { + read_len = 0; + status = psane_read (activeDS.deviceHandle, line, len, &read_len); + if (status != SANE_STATUS_GOOD) + break; + + if (read_len == len) + break; + + line += read_len; + len -= read_len; + } + + return status; +} +#endif + /* DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET */ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, TW_MEMREF pData) @@ -337,12 +361,12 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, TW_UINT16 twRC = TWRC_SUCCESS; pTW_UINT32 pHandle = (pTW_UINT32) pData; SANE_Status status; - SANE_Byte buffer[32*1024]; - int buff_len; - HBITMAP hDIB; - BITMAPINFO bmpInfo; - VOID *pBits; - HDC dc; + HANDLE hDIB; + BITMAPINFOHEADER *header = NULL; + int dib_bytes; + int dib_bytes_per_line; + BYTE *line; + int i; TRACE("DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET\n"); @@ -373,55 +397,79 @@ TW_UINT16 SANE_ImageNativeXferGet (pTW_IDENTITY pOrigin, return TWRC_FAILURE; } - TRACE("Acquiring image %dx%dx%d bits (format=%d last=%d) from sane...\n" + if (activeDS.sane_param.format != SANE_FRAME_RGB) + { + FIXME("For NATIVE, we support only RGB, not %d\n", activeDS.sane_param.format); + psane_cancel (activeDS.deviceHandle); + activeDS.twCC = TWCC_OPERATIONERROR; + return TWRC_FAILURE; + } + + TRACE("Acquiring image %dx%dx%d bits (format=%d last=%d bpl=%d) from sane...\n" , activeDS.sane_param.pixels_per_line, activeDS.sane_param.lines, activeDS.sane_param.depth, activeDS.sane_param.format, - activeDS.sane_param.last_frame); + activeDS.sane_param.last_frame, activeDS.sane_param.bytes_per_line); - ZeroMemory (&bmpInfo, sizeof (BITMAPINFO)); - bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFOHEADER); - bmpInfo.bmiHeader.biWidth = activeDS.sane_param.pixels_per_line; - bmpInfo.bmiHeader.biHeight = activeDS.sane_param.lines; - bmpInfo.bmiHeader.biPlanes = 1; - bmpInfo.bmiHeader.biBitCount = activeDS.sane_param.depth; - bmpInfo.bmiHeader.biCompression = BI_RGB; - bmpInfo.bmiHeader.biSizeImage = 0; - bmpInfo.bmiHeader.biXPelsPerMeter = 0; - bmpInfo.bmiHeader.biYPelsPerMeter = 0; - bmpInfo.bmiHeader.biClrUsed = 1; - bmpInfo.bmiHeader.biClrImportant = 0; - bmpInfo.bmiColors[0].rgbBlue = 128; - bmpInfo.bmiColors[0].rgbGreen = 128; - bmpInfo.bmiColors[0].rgbRed = 128; - hDIB = CreateDIBSection ((dc = GetDC(activeDS.hwndOwner)), &bmpInfo, - DIB_RGB_COLORS, &pBits, 0, 0); - if (!hDIB) + 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)); + if (hDIB) + header = GlobalLock(hDIB); + + if (!header) { psane_cancel (activeDS.deviceHandle); activeDS.twCC = TWCC_LOWMEMORY; + if (hDIB) + GlobalFree(hDIB); return TWRC_FAILURE; } - do + header->biSize = sizeof (*header); + 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; + header->biSizeImage = dib_bytes; + header->biXPelsPerMeter = 0; + header->biYPelsPerMeter = 0; + header->biClrUsed = 0; + header->biClrImportant = 0; + + /* 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; + for (i = activeDS.sane_param.lines - 1; i >= 0; i--) { - status = psane_read (activeDS.deviceHandle, buffer, - sizeof (buffer), &buff_len); - if (status == SANE_STATUS_GOOD) - { - /* FIXME: put code for converting the image data into DIB here */ + activeDS.progressWnd = ScanningDialogBox(activeDS.progressWnd, + ((activeDS.sane_param.lines - 1 - i) * 100) + / + (activeDS.sane_param.lines - 1)); - } - else if (status != SANE_STATUS_EOF) - { - WARN("psane_read: %s\n", psane_strstatus (status)); - psane_cancel (activeDS.deviceHandle); - activeDS.twCC = TWCC_OPERATIONERROR; - return TWRC_FAILURE; - } - } while (status == SANE_STATUS_GOOD); + status = read_one_line(activeDS.deviceHandle, line, + activeDS.sane_param.bytes_per_line); + if (status != SANE_STATUS_GOOD) + break; + + line -= dib_bytes_per_line; + } + activeDS.progressWnd = ScanningDialogBox(activeDS.progressWnd, -1); + + GlobalUnlock(hDIB); + + if (status != SANE_STATUS_GOOD && status != SANE_STATUS_EOF) + { + WARN("psane_read: %s, reading line %d\n", psane_strstatus(status), i); + psane_cancel (activeDS.deviceHandle); + activeDS.twCC = TWCC_OPERATIONERROR; + GlobalFree(hDIB); + return TWRC_FAILURE; + } psane_cancel (activeDS.deviceHandle); - ReleaseDC (activeDS.hwndOwner, dc); *pHandle = (TW_UINT32)hDIB; twRC = TWRC_XFERDONE; activeDS.twCC = TWCC_SUCCESS;
1
0
0
0
Jeremy White : sane.ds: Implement stub support for ICAP_PIXELFLAVOR.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 9bb24b8f7e746357bb0e7cf6858b413842cd70b1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9bb24b8f7e746357bb0e7cf68…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Fri Feb 13 13:14:45 2009 -0600 sane.ds: Implement stub support for ICAP_PIXELFLAVOR. --- dlls/sane.ds/capability.c | 50 ++++++++++++++++++++++++++++++++++++++++++++- dlls/twain_32/tests/dsm.c | 4 ++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c index b66624c..ad2d7ba 100644 --- a/dlls/sane.ds/capability.c +++ b/dlls/sane.ds/capability.c @@ -126,7 +126,7 @@ static TW_UINT16 TWAIN_GetSupportedCaps(pTW_CAPABILITY pCapability) { TW_ARRAY *a; static const UINT16 supported_caps[] = { CAP_SUPPORTEDCAPS, CAP_XFERCOUNT, CAP_UICONTROLLABLE, - ICAP_XFERMECH, ICAP_PIXELTYPE, ICAP_COMPRESSION }; + ICAP_XFERMECH, ICAP_PIXELTYPE, ICAP_COMPRESSION, ICAP_PIXELFLAVOR }; pCapability->hContainer = GlobalAlloc (0, FIELD_OFFSET( TW_ARRAY, ItemList[sizeof(supported_caps)] )); pCapability->ConType = TWON_ARRAY; @@ -345,6 +345,50 @@ static TW_UINT16 SANE_ICAPCompression (pTW_CAPABILITY pCapability, TW_UINT16 act return twCC; } +/* ICAP_PIXELFLAVOR */ +static TW_UINT16 SANE_ICAPPixelFlavor (pTW_CAPABILITY pCapability, TW_UINT16 action) +{ + static const TW_UINT32 possible_values[] = { TWPF_CHOCOLATE, TWPF_VANILLA }; + TW_UINT32 val; + TW_UINT16 twCC = TWCC_BADCAP; + + TRACE("ICAP_PIXELFLAVOR\n"); + + switch (action) + { + case MSG_QUERYSUPPORT: + twCC = set_onevalue(pCapability, TWTY_INT32, + TWQC_GET | TWQC_SET | TWQC_GETDEFAULT | TWQC_GETCURRENT | TWQC_RESET ); + break; + + case MSG_GET: + twCC = msg_get_enum(pCapability, possible_values, sizeof(possible_values) / sizeof(possible_values[0]), + TWTY_UINT16, TWPF_CHOCOLATE, TWPF_CHOCOLATE); + break; + + case MSG_SET: + twCC = msg_set(pCapability, &val); + if (twCC == TWCC_SUCCESS) + { + FIXME("Stub: PIXELFLAVOR set to %d, but ignored\n", val); + } + break; + + case MSG_GETDEFAULT: + twCC = set_onevalue(pCapability, TWTY_UINT16, TWPF_CHOCOLATE); + break; + + case MSG_RESET: + /* .. fall through intentional .. */ + + case MSG_GETCURRENT: + twCC = set_onevalue(pCapability, TWTY_UINT16, TWPF_CHOCOLATE); + break; + } + return twCC; +} + + TW_UINT16 SANE_SaneCapability (pTW_CAPABILITY pCapability, TW_UINT16 action) { TW_UINT16 twCC = TWCC_CAPUNSUPPORTED; @@ -376,6 +420,10 @@ TW_UINT16 SANE_SaneCapability (pTW_CAPABILITY pCapability, TW_UINT16 action) twCC = SANE_ICAPXferMech (pCapability, action); break; + case ICAP_PIXELFLAVOR: + twCC = SANE_ICAPPixelFlavor (pCapability, action); + break; + case ICAP_COMPRESSION: twCC = SANE_ICAPCompression(pCapability, action); break; diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c index 4e3d7ce..1c38824 100644 --- a/dlls/twain_32/tests/dsm.c +++ b/dlls/twain_32/tests/dsm.c @@ -333,8 +333,10 @@ static void test_single_source(TW_IDENTITY *appid, TW_IDENTITY *source) ok(capabilities[ICAP_PHYSICALHEIGHT], "ICAP_PHYSICALHEIGHT not supported\n"); todo_wine ok(capabilities[ICAP_PHYSICALWIDTH], "ICAP_PHYSICALWIDTH not supported\n"); - todo_wine ok(capabilities[ICAP_PIXELFLAVOR], "ICAP_PIXELFLAVOR not supported\n"); + if (capabilities[ICAP_PIXELFLAVOR]) + test_onevalue_cap(appid, source, ICAP_PIXELFLAVOR, TWTY_UINT16, + TWQC_GET | TWQC_SET | TWQC_GETDEFAULT | TWQC_GETCURRENT | TWQC_RESET); /* For Twain 1.6: Sources that supply image information must support DG_CONTROL / DAT_CAPABILITY /
1
0
0
0
Jeremy White : sane.ds: Get resolution from sane, instead of hard coding -1 .
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 4b794bee9a3bad1a3744e5563d61a4861cff83b9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4b794bee9a3bad1a3744e5563…
Author: Jeremy White <jwhite(a)codeweavers.com> Date: Fri Feb 13 13:14:30 2009 -0600 sane.ds: Get resolution from sane, instead of hard coding -1. --- dlls/sane.ds/Makefile.in | 1 + dlls/sane.ds/ds_image.c | 7 ++++- dlls/sane.ds/options.c | 49 ++++++++++++++++++++++++++++++++++++++++++++++ dlls/sane.ds/sane_i.h | 6 +++++ 4 files changed, 61 insertions(+), 2 deletions(-) diff --git a/dlls/sane.ds/Makefile.in b/dlls/sane.ds/Makefile.in index d8646fe..d136594 100644 --- a/dlls/sane.ds/Makefile.in +++ b/dlls/sane.ds/Makefile.in @@ -10,6 +10,7 @@ C_SRCS = \ capability.c \ ds_ctrl.c \ ds_image.c \ + options.c \ sane_main.c \ ui.c diff --git a/dlls/sane.ds/ds_image.c b/dlls/sane.ds/ds_image.c index 9a88bb5..5bb6cbb 100644 --- a/dlls/sane.ds/ds_image.c +++ b/dlls/sane.ds/ds_image.c @@ -86,6 +86,7 @@ TW_UINT16 SANE_ImageInfoGet (pTW_IDENTITY pOrigin, TW_UINT16 twRC = TWRC_SUCCESS; pTW_IMAGEINFO pImageInfo = (pTW_IMAGEINFO) pData; SANE_Status status; + SANE_Int resolution; TRACE("DG_IMAGE/DAT_IMAGEINFO/MSG_GET\n"); @@ -111,9 +112,11 @@ TW_UINT16 SANE_ImageInfoGet (pTW_IDENTITY pOrigin, activeDS.sane_param_valid = TRUE; } - pImageInfo->XResolution.Whole = -1; + if (sane_option_get_int(activeDS.deviceHandle, "resolution", &resolution) == SANE_STATUS_GOOD) + pImageInfo->XResolution.Whole = pImageInfo->YResolution.Whole = resolution; + else + pImageInfo->XResolution.Whole = pImageInfo->YResolution.Whole = -1; pImageInfo->XResolution.Frac = 0; - pImageInfo->YResolution.Whole = -1; pImageInfo->YResolution.Frac = 0; pImageInfo->ImageWidth = activeDS.sane_param.pixels_per_line; pImageInfo->ImageLength = activeDS.sane_param.lines; diff --git a/dlls/sane.ds/options.c b/dlls/sane.ds/options.c new file mode 100644 index 0000000..0ac5c45 --- /dev/null +++ b/dlls/sane.ds/options.c @@ -0,0 +1,49 @@ +/* + * Copyright 2009 Jeremy White <jwhite(a)codeweavers.com> for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" + +#include <stdlib.h> +#include "twain.h" +#include "sane_i.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(twain); + +#ifdef SONAME_LIBSANE +SANE_Status sane_option_get_int(SANE_Handle h, const char *option_name, SANE_Int *val) +{ + SANE_Status rc; + SANE_Int optcount; + const SANE_Option_Descriptor *opt; + int i; + + rc = psane_control_option(h, 0, SANE_ACTION_GET_VALUE, &optcount, NULL); + if (rc != SANE_STATUS_GOOD) + return rc; + + for (i = 1; i < optcount; i++) + { + opt = psane_get_option_descriptor(h, i); + if (opt && (opt->name && strcmp(opt->name, option_name) == 0) && + opt->type == SANE_TYPE_INT ) + return psane_control_option(h, i, SANE_ACTION_GET_VALUE, val, NULL); + } + return SANE_STATUS_EOF; +} +#endif diff --git a/dlls/sane.ds/sane_i.h b/dlls/sane.ds/sane_i.h index 5a3a6d0..7e2f117 100644 --- a/dlls/sane.ds/sane_i.h +++ b/dlls/sane.ds/sane_i.h @@ -211,4 +211,10 @@ TW_UINT16 SANE_RGBResponseSet BOOL DoScannerUI(void); HWND ScanningDialogBox(HWND dialog, LONG progress); +/* Option functions */ +#ifdef SONAME_LIBSANE +SANE_Status sane_option_get_int(SANE_Handle h, const char *option_name, SANE_Int *val); +#endif + + #endif
1
0
0
0
Alexandre Julliard : winmm/tests: Assume volume is not supported if waveGetOutVolume fails.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 9f32c0d9d60662ac8e00ce5cbd4aebd4fdf8dc89 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9f32c0d9d60662ac8e00ce5cb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 16 12:26:18 2009 +0100 winmm/tests: Assume volume is not supported if waveGetOutVolume fails. --- dlls/winmm/tests/wave.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index 37685ed..c6b0282 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -62,7 +62,8 @@ static void test_multiple_waveopens(void) /* In windows this is most likely allowed, in wine an application can use the waveout * interface, but so can directsound.. this causes problems if directsound goes active */ - todo_wine ok(ret == MMSYSERR_NOERROR, "waveOutOpen returns: %x\n", ret); + todo_wine ok(ret == MMSYSERR_NOERROR || broken(ret == MMSYSERR_ALLOCATED), /* winME */ + "waveOutOpen returns: %x\n", ret); if (ret == MMSYSERR_NOERROR) waveOutClose(handle2); @@ -700,6 +701,7 @@ static void wave_out_test_deviceOut(int device, double duration, ok(rc==MMSYSERR_INVALPARAM,"waveOutGetVolume(%s,0) expected " "MMSYSERR_INVALPARAM, got %s\n", dev_name(device),wave_out_error(rc)); rc=waveOutGetVolume(wout,&volume); + if (rc == MMSYSERR_NOTSUPPORTED) has_volume = FALSE; ok(has_volume ? rc==MMSYSERR_NOERROR : rc==MMSYSERR_NOTSUPPORTED, "waveOutGetVolume(%s): rc=%s\n",dev_name(device),wave_out_error(rc));
1
0
0
0
Alexandre Julliard : kernel32/tests: Add a few more error codes for GetDiskFreeSpace.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 5720375fec11aeccdffecd5ea8acfed14e6beaa0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5720375fec11aeccdffecd5ea…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 16 12:02:46 2009 +0100 kernel32/tests: Add a few more error codes for GetDiskFreeSpace. --- dlls/kernel32/tests/drive.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/tests/drive.c b/dlls/kernel32/tests/drive.c index 81e04bf..98bc126 100644 --- a/dlls/kernel32/tests/drive.c +++ b/dlls/kernel32/tests/drive.c @@ -119,8 +119,10 @@ static void test_GetDiskFreeSpaceA(void) { ok(ret || GetLastError() == ERROR_NOT_READY || + GetLastError() == ERROR_INVALID_FUNCTION || GetLastError() == ERROR_INVALID_DRIVE || GetLastError() == ERROR_PATH_NOT_FOUND || + GetLastError() == ERROR_REQUEST_ABORTED || GetLastError() == ERROR_UNRECOGNIZED_VOLUME, "GetDiskFreeSpaceA(%s): ret=%d GetLastError=%d\n", drive, ret, GetLastError()); @@ -137,7 +139,9 @@ static void test_GetDiskFreeSpaceA(void) ret = pGetDiskFreeSpaceExA( drive, &d, &totEx, NULL); ok( ret || GetLastError() == ERROR_NOT_READY || + GetLastError() == ERROR_INVALID_FUNCTION || GetLastError() == ERROR_PATH_NOT_FOUND || + GetLastError() == ERROR_REQUEST_ABORTED || GetLastError() == ERROR_UNRECOGNIZED_VOLUME, "GetDiskFreeSpaceExA( %s ) failed. GetLastError=%d\n", drive, GetLastError()); ok( bytes_per_sector == 0 || /* empty cd rom drive */ @@ -196,7 +200,9 @@ static void test_GetDiskFreeSpaceW(void) else ok( ret || GetLastError() == ERROR_NOT_READY || + GetLastError() == ERROR_INVALID_FUNCTION || GetLastError() == ERROR_PATH_NOT_FOUND || + GetLastError() == ERROR_REQUEST_ABORTED || GetLastError() == ERROR_UNRECOGNIZED_VOLUME, "GetDiskFreeSpaceW(%c): ret=%d GetLastError=%d\n", drive[0], ret, GetLastError());
1
0
0
0
Alexandre Julliard : kernel32/tests: Fix the last remaining failure on NT4.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 9849c99d1bce89676636365fc973625868e56330 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9849c99d1bce89676636365fc…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 16 12:02:25 2009 +0100 kernel32/tests: Fix the last remaining failure on NT4. --- dlls/kernel32/tests/environ.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/kernel32/tests/environ.c b/dlls/kernel32/tests/environ.c index aa163b4..6a13aec 100644 --- a/dlls/kernel32/tests/environ.c +++ b/dlls/kernel32/tests/environ.c @@ -278,7 +278,7 @@ static void test_ExpandEnvironmentStringsA(void) /* v5.1.2600.2945 (XP SP2) needs and returns len + 2 here! */ ret_size = ExpandEnvironmentStringsA(buf, buf1, ret_size); ok(ret_size == strlen(value)+1 || ret_size == strlen(value)+2 || - ret_size == strlen(value)*2 /* NT4 */, + ret_size == (strlen(value)+1)*2 /* NT4 */, "ExpandEnvironmentStrings returned %d instead of %d\n", ret_size, lstrlenA(value)+1); ok(!strcmp(buf1, value), "ExpandEnvironmentStrings returned [%s]\n", buf1);
1
0
0
0
Alexandre Julliard : secur32: Properly initialize the helper structure when fork support is missing.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: 21a7b21b65d00b7879368d0448dbeda18abff0de URL:
http://source.winehq.org/git/wine.git/?a=commit;h=21a7b21b65d00b7879368d044…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 16 11:53:22 2009 +0100 secur32: Properly initialize the helper structure when fork support is missing. --- dlls/secur32/ntlm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c index 38c5134..7e44dd7 100644 --- a/dlls/secur32/ntlm.c +++ b/dlls/secur32/ntlm.c @@ -1982,6 +1982,7 @@ void SECUR32_initNTLMSP(void) /* Cheat and allocate a helper anyway, so cleanup later will work. */ helper = HeapAlloc(GetProcessHeap(),0, sizeof(NegoHelper)); helper->major = helper->minor = helper->micro = -1; + helper->pipe_in = helper->pipe_out = -1; } else check_version(helper);
1
0
0
0
Alexandre Julliard : user32/tests: Fix some checks of the key value in accelerators.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: cc46d242e0cc7f27b3db46ee81bb253e1064d1c9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cc46d242e0cc7f27b3db46ee8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 16 11:53:06 2009 +0100 user32/tests: Fix some checks of the key value in accelerators. --- dlls/user32/tests/resource.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/resource.c b/dlls/user32/tests/resource.c index f553b10..c64aff0 100644 --- a/dlls/user32/tests/resource.c +++ b/dlls/user32/tests/resource.c @@ -199,12 +199,12 @@ static void test_accel1(void) if (++n == r) goto done; ok( ac[n].cmd == 0xfff0, "cmd 2 not preserved got %x\n", ac[n].cmd); - ok( ac[n].key == 0x00ff, "key 2 not preserved got %x\n", ac[n].key); + ok( (ac[n].key & 0xff) == 0xff, "key 2 not preserved got %x\n", ac[n].key); ok( ac[n].fVirt == 0x0070, "fVirt 2 wrong got %x\n", ac[n].fVirt); if (++n == r) goto done; ok( ac[n].cmd == 0xfff0, "cmd 3 not preserved got %x\n", ac[n].cmd); - ok( ac[n].key == 0x00ff, "key 3 not preserved got %x\n", ac[n].key); + ok( (ac[n].key & 0xff) == 0xff, "key 3 not preserved got %x\n", ac[n].key); ok( ac[n].fVirt == 0x0000, "fVirt 3 wrong got %x\n", ac[n].fVirt); if (++n == r) goto done;
1
0
0
0
Alexandre Julliard : user32/tests: Skip some tests if SetForegroundWindow doesn't behave correctly.
by Alexandre Julliard
16 Feb '09
16 Feb '09
Module: wine Branch: master Commit: d00ad7f197d49f0b7b45645a1b41c70c5db74d0c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d00ad7f197d49f0b7b45645a1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 16 11:52:38 2009 +0100 user32/tests: Skip some tests if SetForegroundWindow doesn't behave correctly. --- dlls/user32/tests/win.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index c72c114..a79bd34 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -2398,7 +2398,11 @@ static void test_SetForegroundWindow(HWND hwnd) check_wnd_state(0, 0, 0, 0); ret = SetForegroundWindow(hwnd); - ok(ret, "SetForegroundWindow returned FALSE instead of TRUE\n"); + if (!ret) + { + skip( "SetForegroundWindow not working\n" ); + return; + } check_wnd_state(hwnd, hwnd, hwnd, 0); SetLastError(0xdeadbeef);
1
0
0
0
← Newer
1
...
44
45
46
47
48
49
50
...
97
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
Results per page:
10
25
50
100
200