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
July 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
5 participants
857 discussions
Start a n
N
ew thread
appdb/. account.php
by WineHQ
07 Jul '06
07 Jul '06
ChangeSet ID: 26281 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/07/07 10:50:41 Modified files: . : account.php Log message: Jonathan Ernst <jonathan(a)ernstfamily.ch> Add documentation to account.php Patch:
http://cvs.winehq.org/patch.py?id=26281
Old revision New revision Changes Path 1.31 1.32 +7 -0 appdb/account.php Index: appdb/account.php diff -u -p appdb/account.php:1.31 appdb/account.php:1.32 --- appdb/account.php:1.31 7 Jul 2006 15:50:41 -0000 +++ appdb/account.php 7 Jul 2006 15:50:41 -0000 @@ -5,6 +5,13 @@ * Mandatory parameters: * - sCmd, action to perform ("new", "do_new", "login", "do_login", "send_passwd", "logout") * + * Optional parameters: + * - sUserPassword, new password + * - sUserPassword2, new password confirmation + * - sUserEmail, e-mail address + * - sUserRealname, user's real name + * - sWineRelease, user's Wine release + * * TODO: * - replace sCmd with iAction and replace "new", "login", etc. with integer constants NEW, LOGIN, etc. * - move functions into their respective modules (probably static methods of user class)
1
0
0
0
appdb/ ./account.php include/form_new.php
by WineHQ
07 Jul '06
07 Jul '06
ChangeSet ID: 26280 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/07/07 10:45:48 Modified files: . : account.php include : form_new.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Fix account creation. Change cmd to sCmd like the account.php code expects Patch:
http://cvs.winehq.org/patch.py?id=26280
Old revision New revision Changes Path 1.30 1.31 +1 -1 appdb/account.php 1.8 1.9 +1 -1 appdb/include/form_new.php Index: appdb/account.php diff -u -p appdb/account.php:1.30 appdb/account.php:1.31 --- appdb/account.php:1.30 7 Jul 2006 15:45:48 -0000 +++ appdb/account.php 7 Jul 2006 15:45:48 -0000 @@ -162,7 +162,7 @@ function cmd_send_passwd() { addmsg("Please enter your email address in the 'E-mail' field and re-request a new password", "green"); - util_redirect_and_exit(apidb_fullurl("account.php?cmd=login")); + util_redirect_and_exit(apidb_fullurl("account.php?sCmd=login")); } $shNote = '(<b>Note</b>: accounts for <b>appdb</b>.winehq.org and <b>bugs</b>.winehq.org ' Index: appdb/include/form_new.php diff -u -p appdb/include/form_new.php:1.8 appdb/include/form_new.php:1.9 --- appdb/include/form_new.php:1.8 7 Jul 2006 15:45:48 -0000 +++ appdb/include/form_new.php 7 Jul 2006 15:45:48 -0000 @@ -52,7 +52,7 @@ echo html_frame_start("Create New Applic <?php echo html_frame_end(" "); -echo '<input type="hidden" name="cmd" value="do_new">',"\n"; +echo '<input type="hidden" name="sCmd" value="do_new">',"\n"; echo '</form>',"\n"; echo p(),p(),p();
1
0
0
0
appdb/include incl.php
by WineHQ
07 Jul '06
07 Jul '06
ChangeSet ID: 26279 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/07/07 10:39:41 Modified files: include : incl.php Log message: Jonathan Ernst <jonathan(a)ernstfamily.ch> $_REQUEST['mode'] backwards compatibility Patch:
http://cvs.winehq.org/patch.py?id=26279
Old revision New revision Changes Path 1.33 1.34 +5 -0 appdb/include/incl.php Index: appdb/include/incl.php diff -u -p appdb/include/incl.php:1.33 appdb/include/incl.php:1.34 --- appdb/include/incl.php:1.33 7 Jul 2006 15:39:41 -0000 +++ appdb/include/incl.php 7 Jul 2006 15:39:41 -0000 @@ -73,6 +73,11 @@ if(isset($_REQUEST['topic'])) $_REQUEST['sTopic'] = $_REQUEST['topic']; unset($_REQUEST['topic']); } +if(isset($_REQUEST['mode'])) +{ + $_REQUEST['sMode'] = $_REQUEST['mode']; + unset($_REQUEST['mode']); +} /* End backwards compatibility code */
1
0
0
0
Michael Stefaniuc : riched20: Replace an if-statement with empty body with a FIXME comment.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: c3f112e52dbecbb2c1785cfbd8491d6f34814a93 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=c3f112e52dbecbb2c1785cf…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Jul 7 00:29:03 2006 +0200 riched20: Replace an if-statement with empty body with a FIXME comment. --- dlls/riched20/caret.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c index 057e5d8..da52288 100644 --- a/dlls/riched20/caret.c +++ b/dlls/riched20/caret.c @@ -765,8 +765,8 @@ void ME_MouseMove(ME_TextEditor *editor, y += ME_GetYScrollPos(editor); tmp_cursor = editor->pCursors[0]; - if (!ME_FindPixelPos(editor, x, y, &tmp_cursor, &editor->bCaretAtEnd)) - /* return */; + /* FIXME: do something with the return value of ME_FindPixelPos */ + ME_FindPixelPos(editor, x, y, &tmp_cursor, &editor->bCaretAtEnd); if (tmp_cursor.pRun == editor->pCursors[0].pRun && tmp_cursor.nOffset == editor->pCursors[0].nOffset)
1
0
0
0
Michael Stefaniuc : janitorial: Put "inline static" at the beginning of a declaration.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: 00e779370f6cd582ddaedb556769a9ecdff5d712 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=00e779370f6cd582ddaedb5…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Jul 7 00:26:16 2006 +0200 janitorial: Put "inline static" at the beginning of a declaration. --- dlls/comctl32/trackbar.c | 52 ++++++++++++++++++++++---------------------- dlls/mlang/tests/mlang.c | 4 ++- dlls/msg711.acm/msg711.c | 2 +- dlls/rpcrt4/ndr_marshall.c | 2 +- dlls/user/driver16.c | 2 +- dlls/wined3d/drawprim.c | 4 ++- dlls/winex11.drv/wintab.c | 2 +- dlls/winmm/driver.c | 2 +- dlls/wintab32/context.c | 4 ++- 9 files changed, 37 insertions(+), 37 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=00e779370f6cd582dda…
1
0
0
0
Michael Stefaniuc : janitorial: Move the storage specifier to the beginning of the declaration.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: 32b1a245010d7c2471e0817adc627fcf05fcdad9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=32b1a245010d7c2471e0817…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Jul 7 00:23:14 2006 +0200 janitorial: Move the storage specifier to the beginning of the declaration. --- dlls/shell32/systray.c | 2 +- dlls/wined3d/wined3d_private.h | 2 +- programs/explorer/systray.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/shell32/systray.c b/dlls/shell32/systray.c index f4bb6ed..8439e6f 100644 --- a/dlls/shell32/systray.c +++ b/dlls/shell32/systray.c @@ -36,7 +36,7 @@ #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(systray); -const static WCHAR classname[] = /* Shell_TrayWnd */ {'S','h','e','l','l','_','T','r','a','y','W','n','d','\0'}; +static const WCHAR classname[] = /* Shell_TrayWnd */ {'S','h','e','l','l','_','T','r','a','y','W','n','d','\0'}; /************************************************************************* * Shell_NotifyIcon [SHELL32.296] diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index a71539a..50b2503 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -92,7 +92,7 @@ typedef struct _WINED3DGLTYPE { } WINED3DGLTYPE; /* NOTE: Make sure these are in the correct numerical order. (see /include/d3d9types.h typedef enum _D3DDECLTYPE) */ -WINED3DGLTYPE static const glTypeLookup[D3DDECLTYPE_UNUSED] = { +static WINED3DGLTYPE const glTypeLookup[D3DDECLTYPE_UNUSED] = { {D3DDECLTYPE_FLOAT1, 1, GL_FLOAT , GL_FALSE ,sizeof(float)}, {D3DDECLTYPE_FLOAT2, 2, GL_FLOAT , GL_FALSE ,sizeof(float)}, {D3DDECLTYPE_FLOAT3, 3, GL_FLOAT , GL_FALSE ,sizeof(float)}, diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index 38e8ab3..70d29bf 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -44,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(systray); #define IS_OPTION_FALSE(ch) \ ((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0') -const static WCHAR adaptor_classname[] = /* Adaptor */ {'A','d','a','p','t','o','r',0}; +static const WCHAR adaptor_classname[] = /* Adaptor */ {'A','d','a','p','t','o','r',0}; /* tray state */ struct tray @@ -192,7 +192,7 @@ static void add_icon(const NOTIFYICONDAT { RECT rect; struct icon *icon; - const static WCHAR adaptor_windowname[] = /* Wine System Tray Adaptor */ {'W','i','n','e',' ','S','y','s','t','e','m',' ','T','r','a','y',' ','A','d','a','p','t','o','r',0}; + static const WCHAR adaptor_windowname[] = /* Wine System Tray Adaptor */ {'W','i','n','e',' ','S','y','s','t','e','m',' ','T','r','a','y',' ','A','d','a','p','t','o','r',0}; WINE_TRACE("id=0x%x, hwnd=%p\n", nid->uID, nid->hWnd);
1
0
0
0
Thomas Kho : notepad: Change window classname from NPClass to Notepad.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: 0796fe256be7205ee336f2746c91daeb319938f3 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=0796fe256be7205ee336f27…
Author: Thomas Kho <tkho(a)ucla.edu> Date: Thu Jul 6 17:40:47 2006 -0500 notepad: Change window classname from NPClass to Notepad. --- programs/notepad/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/notepad/main.c b/programs/notepad/main.c index 3e10aa9..d4ba472 100644 --- a/programs/notepad/main.c +++ b/programs/notepad/main.c @@ -370,7 +370,7 @@ int PASCAL WinMain(HINSTANCE hInstance, MSG msg; HACCEL hAccel; WNDCLASSEX class; - static const WCHAR className[] = {'N','P','C','l','a','s','s',0}; + static const WCHAR className[] = {'N','o','t','e','p','a','d',0}; static const WCHAR winName[] = {'N','o','t','e','p','a','d',0}; aFINDMSGSTRING = RegisterWindowMessage(FINDMSGSTRING);
1
0
0
0
Jacek Caban : urlmon: Added image/x-png mime filter.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: 6ce4833479c00637a56b3408424c89fecbf93612 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6ce4833479c00637a56b340…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Jul 6 21:11:04 2006 +0200 urlmon: Added image/x-png mime filter. --- dlls/urlmon/tests/misc.c | 13 ++++++++++++- dlls/urlmon/urlmon_main.c | 8 ++++++++ 2 files changed, 20 insertions(+), 1 deletions(-) diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c index ad1b2bd..6e034c0 100644 --- a/dlls/urlmon/tests/misc.c +++ b/dlls/urlmon/tests/misc.c @@ -333,6 +333,7 @@ static const WCHAR mimeAppOctetStream[] static const WCHAR mimeImagePjpeg[] = {'i','m','a','g','e','/','p','j','p','e','g',0}; static const WCHAR mimeImageGif[] = {'i','m','a','g','e','/','g','i','f',0}; static const WCHAR mimeImageBmp[] = {'i','m','a','g','e','/','b','m','p',0}; +static const WCHAR mimeImageXPng[] = {'i','m','a','g','e','/','x','-','p','n','g',0}; static const struct { LPCWSTR url; @@ -380,6 +381,11 @@ static BYTE data30[] = {0x42,0x4d,'x','x static BYTE data31[] = {0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'<','h','t','m','l','>'}; static BYTE data32[] = {0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'x','x','x'}; static BYTE data33[] = {0x00,0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'x','x','x'}; +static BYTE data34[] = {0x89,'P','N','G',0x0d,0x0a,0x1a,0x0a,'x'}; +static BYTE data35[] = {0x89,'P','N','G',0x0d,0x0a,0x1a,0x0a,'x','x','x','x',0}; +static BYTE data36[] = {0x89,'P','N','G',0x0d,0x0a,0x1a,'x','x'}; +static BYTE data37[] = {0x89,'P','N','G',0x0d,0x0a,0x1a,0x0a,'<','h','t','m','l','>'}; +static BYTE data38[] = {0x00,0x89,'P','N','G',0x0d,0x0a,0x1a,0x0a,'x'}; static const struct { BYTE *data; @@ -418,7 +424,12 @@ static const struct { {data30, sizeof(data30), mimeAppOctetStream}, {data31, sizeof(data31), mimeTextHtml}, {data32, sizeof(data32), mimeAppOctetStream}, - {data33, sizeof(data32), mimeAppOctetStream} + {data33, sizeof(data33), mimeAppOctetStream}, + {data34, sizeof(data34), mimeImageXPng}, + {data35, sizeof(data35), mimeImageXPng}, + {data36, sizeof(data36), mimeAppOctetStream}, + {data37, sizeof(data37), mimeTextHtml}, + {data38, sizeof(data38), mimeAppOctetStream} }; static void test_FindMimeFromData(void) diff --git a/dlls/urlmon/urlmon_main.c b/dlls/urlmon/urlmon_main.c index 9cd6daa..168d9c4 100644 --- a/dlls/urlmon/urlmon_main.c +++ b/dlls/urlmon/urlmon_main.c @@ -434,6 +434,12 @@ static BOOL image_pjpeg_filter(LPVOID bu return size > 2 && *(BYTE*)buf == 0xff && *((BYTE*)buf+1) == 0xd8; } +static BOOL image_xpng_filter(LPVOID buf, DWORD size) +{ + static const BYTE xpng_header[] = {0x89,'P','N','G',0x0d,0x0a,0x1a,0x0a}; + return size > sizeof(xpng_header) && !memcmp(buf, xpng_header, sizeof(xpng_header)); +} + static BOOL image_bmp_filter(LPVOID buf, DWORD size) { return size >= 14 @@ -496,6 +502,7 @@ HRESULT WINAPI FindMimeFromData(LPBC pBC static const WCHAR wszTextHtml[] = {'t','e','x','t','/','h','t','m','l',0}; static const WCHAR wszImageGif[] = {'i','m','a','g','e','/','g','i','f',0}; static const WCHAR wszImagePjpeg[] = {'i','m','a','g','e','/','p','j','p','e','g',0}; + static const WCHAR wszImageXPng[] = {'i','m','a','g','e','/','x','-','p','n','g',0}; static const WCHAR wszImageBmp[] = {'i','m','a','g','e','/','b','m','p',0}; static const WCHAR wszTextPlain[] = {'t','e','x','t','/','p','l','a','i','n','\0'}; static const WCHAR wszAppOctetStream[] = {'a','p','p','l','i','c','a','t','i','o','n','/', @@ -508,6 +515,7 @@ HRESULT WINAPI FindMimeFromData(LPBC pBC {wszTextHtml, text_html_filter}, {wszImageGif, image_gif_filter}, {wszImagePjpeg, image_pjpeg_filter}, + {wszImageXPng, image_xpng_filter}, {wszImageBmp, image_bmp_filter}, {wszTextPlain, text_plain_filter}, {wszAppOctetStream, application_octet_stream_filter}
1
0
0
0
Jacek Caban : urlmon: Added image/bmp filter.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: 682944ad2d50d181afa1571d3440e53b2fe78ff1 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=682944ad2d50d181afa1571…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Jul 6 20:38:27 2006 +0200 urlmon: Added image/bmp filter. --- dlls/urlmon/tests/misc.c | 16 ++++++++++++++-- dlls/urlmon/urlmon_main.c | 10 ++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c index 24b703a..ad1b2bd 100644 --- a/dlls/urlmon/tests/misc.c +++ b/dlls/urlmon/tests/misc.c @@ -332,6 +332,7 @@ static const WCHAR mimeAppOctetStream[] 'o','c','t','e','t','-','s','t','r','e','a','m',0}; static const WCHAR mimeImagePjpeg[] = {'i','m','a','g','e','/','p','j','p','e','g',0}; static const WCHAR mimeImageGif[] = {'i','m','a','g','e','/','g','i','f',0}; +static const WCHAR mimeImageBmp[] = {'i','m','a','g','e','/','b','m','p',0}; static const struct { LPCWSTR url; @@ -373,7 +374,12 @@ static BYTE data24[] = {'g','i','f','8', static BYTE data25[] = {'G','i','F','8','7','A'}; static BYTE data26[] = {'G','i','F','8','7','a','<','h','t','m','l','>'}; static BYTE data27[] = {0x30,'G','i','F','8','7','A'}; - +static BYTE data28[] = {0x42,0x4d,0x6e,0x42,0x1c,0x00,0x00,0x00,0x00,0x00,0x36,0x00,0x00,0x00}; +static BYTE data29[] = {0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'x','x','x','x'}; +static BYTE data30[] = {0x42,0x4d,'x','x','x','x',0x00,0x01,0x00,0x00,'x','x','x','x'}; +static BYTE data31[] = {0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'<','h','t','m','l','>'}; +static BYTE data32[] = {0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'x','x','x'}; +static BYTE data33[] = {0x00,0x42,0x4d,'x','x','x','x',0x00,0x00,0x00,0x00,'x','x','x'}; static const struct { BYTE *data; @@ -406,7 +412,13 @@ static const struct { {data24, sizeof(data24), mimeImageGif}, {data25, sizeof(data25), mimeImageGif}, {data26, sizeof(data26), mimeTextHtml}, - {data27, sizeof(data27), mimeTextPlain} + {data27, sizeof(data27), mimeTextPlain}, + {data28, sizeof(data28), mimeImageBmp}, + {data29, sizeof(data29), mimeImageBmp}, + {data30, sizeof(data30), mimeAppOctetStream}, + {data31, sizeof(data31), mimeTextHtml}, + {data32, sizeof(data32), mimeAppOctetStream}, + {data33, sizeof(data32), mimeAppOctetStream} }; static void test_FindMimeFromData(void) diff --git a/dlls/urlmon/urlmon_main.c b/dlls/urlmon/urlmon_main.c index 742eb70..9cd6daa 100644 --- a/dlls/urlmon/urlmon_main.c +++ b/dlls/urlmon/urlmon_main.c @@ -434,6 +434,14 @@ static BOOL image_pjpeg_filter(LPVOID bu return size > 2 && *(BYTE*)buf == 0xff && *((BYTE*)buf+1) == 0xd8; } +static BOOL image_bmp_filter(LPVOID buf, DWORD size) +{ + return size >= 14 + && *(BYTE*)buf == 0x42 + && *((BYTE*)buf+1) == 0x4d + && *(DWORD*)((BYTE*)buf+6) == 0; +} + static BOOL text_plain_filter(LPVOID buf, DWORD size) { UCHAR *ptr; @@ -488,6 +496,7 @@ HRESULT WINAPI FindMimeFromData(LPBC pBC static const WCHAR wszTextHtml[] = {'t','e','x','t','/','h','t','m','l',0}; static const WCHAR wszImageGif[] = {'i','m','a','g','e','/','g','i','f',0}; static const WCHAR wszImagePjpeg[] = {'i','m','a','g','e','/','p','j','p','e','g',0}; + static const WCHAR wszImageBmp[] = {'i','m','a','g','e','/','b','m','p',0}; static const WCHAR wszTextPlain[] = {'t','e','x','t','/','p','l','a','i','n','\0'}; static const WCHAR wszAppOctetStream[] = {'a','p','p','l','i','c','a','t','i','o','n','/', 'o','c','t','e','t','-','s','t','r','e','a','m','\0'}; @@ -499,6 +508,7 @@ HRESULT WINAPI FindMimeFromData(LPBC pBC {wszTextHtml, text_html_filter}, {wszImageGif, image_gif_filter}, {wszImagePjpeg, image_pjpeg_filter}, + {wszImageBmp, image_bmp_filter}, {wszTextPlain, text_plain_filter}, {wszAppOctetStream, application_octet_stream_filter} };
1
0
0
0
Jacek Caban : urlmon: Added image/gif filter.
by Alexandre Julliard
07 Jul '06
07 Jul '06
Module: wine Branch: refs/heads/master Commit: 32405d635f27474381f4b6ecb4395a813fb51239 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=32405d635f27474381f4b6e…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Jul 6 20:04:26 2006 +0200 urlmon: Added image/gif filter. --- dlls/urlmon/tests/misc.c | 22 +++++++++++++++++++++- dlls/urlmon/urlmon_main.c | 15 +++++++++++++++ 2 files changed, 36 insertions(+), 1 deletions(-) diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c index 1a7f078..24b703a 100644 --- a/dlls/urlmon/tests/misc.c +++ b/dlls/urlmon/tests/misc.c @@ -331,6 +331,7 @@ static const WCHAR mimeTextPlain[] = {'t static const WCHAR mimeAppOctetStream[] = {'a','p','p','l','i','c','a','t','i','o','n','/', 'o','c','t','e','t','-','s','t','r','e','a','m',0}; static const WCHAR mimeImagePjpeg[] = {'i','m','a','g','e','/','p','j','p','e','g',0}; +static const WCHAR mimeImageGif[] = {'i','m','a','g','e','/','g','i','f',0}; static const struct { LPCWSTR url; @@ -363,6 +364,16 @@ static BYTE data15[] = {0xff,0xd8}; static BYTE data16[] = {0xff,0xd8,'h'}; static BYTE data17[] = {0,0xff,0xd8}; static BYTE data18[] = {0xff,0xd8,'<','h','t','m','l','>'}; +static BYTE data19[] = {'G','I','F','8','7','a'}; +static BYTE data20[] = {'G','I','F','8','9','a'}; +static BYTE data21[] = {'G','I','F','8','7'}; +static BYTE data22[] = {'G','i','F','8','7','a'}; +static BYTE data23[] = {'G','i','F','8','8','a'}; +static BYTE data24[] = {'g','i','f','8','7','a'}; +static BYTE data25[] = {'G','i','F','8','7','A'}; +static BYTE data26[] = {'G','i','F','8','7','a','<','h','t','m','l','>'}; +static BYTE data27[] = {0x30,'G','i','F','8','7','A'}; + static const struct { BYTE *data; @@ -386,7 +397,16 @@ static const struct { {data15, sizeof(data15), mimeTextPlain}, {data16, sizeof(data16), mimeImagePjpeg}, {data17, sizeof(data17), mimeAppOctetStream}, - {data18, sizeof(data18), mimeTextHtml} + {data18, sizeof(data18), mimeTextHtml}, + {data19, sizeof(data19), mimeImageGif}, + {data20, sizeof(data20), mimeImageGif}, + {data21, sizeof(data21), mimeTextPlain}, + {data22, sizeof(data22), mimeImageGif}, + {data23, sizeof(data23), mimeTextPlain}, + {data24, sizeof(data24), mimeImageGif}, + {data25, sizeof(data25), mimeImageGif}, + {data26, sizeof(data26), mimeTextHtml}, + {data27, sizeof(data27), mimeTextPlain} }; static void test_FindMimeFromData(void) diff --git a/dlls/urlmon/urlmon_main.c b/dlls/urlmon/urlmon_main.c index 2adafe9..742eb70 100644 --- a/dlls/urlmon/urlmon_main.c +++ b/dlls/urlmon/urlmon_main.c @@ -416,6 +416,19 @@ static BOOL text_html_filter(LPVOID buf, return FALSE; } +static BOOL image_gif_filter(LPVOID buf, DWORD size) +{ + const BYTE const *b = buf; + + return size >= 6 + && (b[0] == 'G' || b[0] == 'g') + && (b[1] == 'I' || b[1] == 'i') + && (b[2] == 'F' || b[2] == 'f') + && b[3] == '8' + && (b[4] == '7' || b[4] == '9') + && (b[5] == 'A' || b[5] == 'a'); +} + static BOOL image_pjpeg_filter(LPVOID buf, DWORD size) { return size > 2 && *(BYTE*)buf == 0xff && *((BYTE*)buf+1) == 0xd8; @@ -473,6 +486,7 @@ HRESULT WINAPI FindMimeFromData(LPBC pBC int i; static const WCHAR wszTextHtml[] = {'t','e','x','t','/','h','t','m','l',0}; + static const WCHAR wszImageGif[] = {'i','m','a','g','e','/','g','i','f',0}; static const WCHAR wszImagePjpeg[] = {'i','m','a','g','e','/','p','j','p','e','g',0}; static const WCHAR wszTextPlain[] = {'t','e','x','t','/','p','l','a','i','n','\0'}; static const WCHAR wszAppOctetStream[] = {'a','p','p','l','i','c','a','t','i','o','n','/', @@ -483,6 +497,7 @@ HRESULT WINAPI FindMimeFromData(LPBC pBC BOOL (*filter)(LPVOID,DWORD); } mime_filters[] = { {wszTextHtml, text_html_filter}, + {wszImageGif, image_gif_filter}, {wszImagePjpeg, image_pjpeg_filter}, {wszTextPlain, text_plain_filter}, {wszAppOctetStream, application_octet_stream_filter}
1
0
0
0
← Newer
1
...
71
72
73
74
75
76
77
...
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