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
September 2011
----- 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
996 discussions
Start a n
N
ew thread
Francois Gouget : gdiplus/tests: Don' t check for hardcoded family font names.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: bcd793bf3b9c0f334b012b6afe8bef3160d64f2b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bcd793bf3b9c0f334b012b6af…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Sep 13 01:45:20 2011 +0200 gdiplus/tests: Don't check for hardcoded family font names. Only check that each font family is different and that we can create fonts from them. --- dlls/gdiplus/tests/font.c | 89 +++++++++++++++++++++++---------------------- 1 files changed, 46 insertions(+), 43 deletions(-) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 323461a..98c4114 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -34,6 +34,7 @@ static const WCHAR MicrosoftSansSerif[] = {'M','i','c','r','o','s','o','f','t',' static const WCHAR TimesNewRoman[] = {'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n','\0'}; static const WCHAR CourierNew[] = {'C','o','u','r','i','e','r',' ','N','e','w','\0'}; static const WCHAR Tahoma[] = {'T','a','h','o','m','a',0}; +static const WCHAR LiberationSerif[] = {'L','i','b','e','r','a','t','i','o','n',' ','S','e','r','i','f',0}; static void test_createfont(void) { @@ -284,60 +285,62 @@ static void test_fontfamily_properties (void) } } -static void test_getgenerics (void) +static void check_family(const char* context, GpFontFamily *family, WCHAR *name) { GpStatus stat; - GpFontFamily* family; - WCHAR familyName[LF_FACESIZE]; - ZeroMemory(familyName, sizeof(familyName)/sizeof(WCHAR)); + GpFont* font; - stat = GdipGetGenericFontFamilySansSerif (&family); - if (stat == FontFamilyNotFound) + *name = 0; + stat = GdipGetFamilyName(family, name, LANG_NEUTRAL); + ok(stat == Ok, "could not get the %s family name: %.8x\n", context, stat); + + stat = GdipCreateFont(family, 12, FontStyleRegular, UnitPixel, &font); + ok(stat == Ok, "could not create a font for the %s family: %.8x\n", context, stat); + if (stat == Ok) { - skip("Microsoft Sans Serif not installed\n"); - goto serif; + stat = GdipDeleteFont(font); + ok(stat == Ok, "could not delete the %s family font: %.8x\n", context, stat); } + + stat = GdipDeleteFontFamily(family); + ok(stat == Ok, "could not delete the %s family: %.8x\n", context, stat); +} + +static void test_getgenerics (void) +{ + GpStatus stat; + GpFontFamily *family; + WCHAR sansname[LF_FACESIZE], serifname[LF_FACESIZE], mononame[LF_FACESIZE]; + int missingfonts = 0; + + stat = GdipGetGenericFontFamilySansSerif(&family); expect (Ok, stat); - stat = GdipGetFamilyName (family, familyName, LANG_NEUTRAL); - expect (Ok, stat); - if (!lstrcmpiW(familyName, Tahoma)) - todo_wine ok ((lstrcmpiW(familyName, MicrosoftSansSerif) == 0), - "Expected Microsoft Sans Serif, got Tahoma\n"); + if (stat == FontFamilyNotFound) + missingfonts = 1; else - ok ((lstrcmpiW(familyName, MicrosoftSansSerif) == 0), - "Expected Microsoft Sans Serif, got %s\n", wine_dbgstr_w(familyName)); - stat = GdipDeleteFontFamily (family); - expect (Ok, stat); + check_family("Sans Serif", family, sansname); -serif: - stat = GdipGetGenericFontFamilySerif (&family); - if (stat == FontFamilyNotFound) - { - skip("Times New Roman not installed\n"); - goto monospace; - } - expect (Ok, stat); - stat = GdipGetFamilyName (family, familyName, LANG_NEUTRAL); + stat = GdipGetGenericFontFamilySerif(&family); expect (Ok, stat); - ok (lstrcmpiW(familyName, TimesNewRoman) == 0, - "Expected Times New Roman, got %s\n", wine_dbgstr_w(familyName)); - stat = GdipDeleteFontFamily (family); - expect (Ok, stat); - -monospace: - stat = GdipGetGenericFontFamilyMonospace (&family); if (stat == FontFamilyNotFound) - { - skip("Courier New not installed\n"); - return; - } - expect (Ok, stat); - stat = GdipGetFamilyName (family, familyName, LANG_NEUTRAL); - expect (Ok, stat); - ok (lstrcmpiW(familyName, CourierNew) == 0, - "Expected Courier New, got %s\n", wine_dbgstr_w(familyName)); - stat = GdipDeleteFontFamily (family); + missingfonts = 1; + else + check_family("Serif", family, serifname); + + stat = GdipGetGenericFontFamilyMonospace(&family); expect (Ok, stat); + if (stat == FontFamilyNotFound) + missingfonts = 1; + else + check_family("Monospace", family, mononame); + + if (missingfonts && strcmp(winetest_platform, "wine") == 0) + trace("You may need to install either the Microsoft Web Fonts or the Liberation Fonts\n"); + + /* Check that the family names are all different */ + ok(lstrcmpiW(sansname, serifname) != 0, "Sans Serif and Serif families should be different: %s\n", wine_dbgstr_w(sansname)); + ok(lstrcmpiW(sansname, mononame) != 0, "Sans Serif and Monospace families should be different: %s\n", wine_dbgstr_w(sansname)); + ok(lstrcmpiW(serifname, mononame) != 0, "Serif and Monospace families should be different: %s\n", wine_dbgstr_w(serifname)); } static void test_installedfonts (void)
1
0
0
0
Francois Gouget : Assorted spelling fixes.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: 8973c20f7dda16fb7e650145b6c09b2f13a8d4a4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8973c20f7dda16fb7e650145b…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Sep 12 23:14:33 2011 +0200 Assorted spelling fixes. --- dlls/ddraw/ddraw.c | 2 +- dlls/shlwapi/tests/string.c | 4 ++-- dlls/urlmon/tests/sec_mgr.c | 2 +- po/pt_BR.po | 2 +- po/sl.po | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index d48aa01..faa4125 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -5748,7 +5748,7 @@ static HRESULT CDECL device_parent_create_depth_stencil(struct wined3d_device_pa UINT width, UINT height, enum wined3d_format_id format, WINED3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL discard, struct wined3d_surface **surface) { - ERR("DirectDraw doesn't have and shoudn't try creating implicit depth buffers.\n"); + ERR("DirectDraw doesn't have and shouldn't try creating implicit depth buffers.\n"); return E_NOTIMPL; } diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c index 1488e58..64e5b59 100644 --- a/dlls/shlwapi/tests/string.c +++ b/dlls/shlwapi/tests/string.c @@ -953,7 +953,7 @@ if (0) { memset(buf, 0xbf, sizeof(buf)); ret = pwnsprintfA(buf, 10, "%s", str1); - ok(broken(ret == 9) || ret == -1 /* Vista */, "Unexpected wsnprintfA return %d, expected 9 or -1\n", ret); + ok(broken(ret == 9) || ret == -1 /* Vista */, "Unexpected wnsprintfA return %d, expected 9 or -1\n", ret); expect_eq(buf[9], 0, CHAR, "%x"); expect_eq(buf[10], (CHAR)0xbf, CHAR, "%x"); } @@ -964,7 +964,7 @@ if (0) { memset(wbuf, 0xbf, sizeof(wbuf)); ret = pwnsprintfW(wbuf, 10, fmt, wstr1); - ok(broken(ret == 9) || ret == -1 /* Vista */, "Unexpected wsnprintfW return %d, expected 9 or -1\n", ret); + ok(broken(ret == 9) || ret == -1 /* Vista */, "Unexpected wnsprintfW return %d, expected 9 or -1\n", ret); expect_eq(wbuf[9], 0, WCHAR, "%x"); expect_eq(wbuf[10], (WCHAR)0xbfbf, WCHAR, "%x"); } diff --git a/dlls/urlmon/tests/sec_mgr.c b/dlls/urlmon/tests/sec_mgr.c index f94e791..fd74fbd 100644 --- a/dlls/urlmon/tests/sec_mgr.c +++ b/dlls/urlmon/tests/sec_mgr.c @@ -1561,7 +1561,7 @@ static void test_InternetGetSecurityUrlEx_Pluggable(void) HRESULT hr; IUri *uri = NULL, *result; - trace("testing CoInternetGetSecurityUrlEx for plugable protocols...\n"); + trace("testing CoInternetGetSecurityUrlEx for pluggable protocols...\n"); hr = pCreateUri(security_urlW, 0, 0, &uri); ok(hr == S_OK, "CreateUri returned 0x%08x\n", hr); diff --git a/po/pt_BR.po b/po/pt_BR.po index 7c286a9..8ea9fc2 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5644,7 +5644,7 @@ msgstr "" "Windows Installer %s\n" "\n" "Modo de usar:\n" -"msiexec command {required parameter} [optional parammeter]\n" +"msiexec command {required parameter} [optional parameter]\n" "\n" "Instalar um produto:\n" "\t/i {package|productcode} [property]\n" diff --git a/po/sl.po b/po/sl.po index 1f469a1..018d919 100644 --- a/po/sl.po +++ b/po/sl.po @@ -5449,7 +5449,7 @@ msgstr "" "Windows namestilnik %s\n" "\n" "Uporaba:\n" -"msiexec ukaz {zahtevan parameter} [izbirni parammeter]\n" +"msiexec ukaz {zahtevan parameter} [izbirni parameter]\n" "\n" "Namesti product:\n" "\t/i {paket|koda_produkta} [lastnost]\n"
1
0
0
0
Francois Gouget : attrib: Escape the start-of-line spaces to fix the usage message indentation.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: 1a75268d72b222543a9d40463cf2c6c09aee700c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1a75268d72b222543a9d40463…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Sep 12 23:10:32 2011 +0200 attrib: Escape the start-of-line spaces to fix the usage message indentation. --- po/ar.po | 25 +++++++++++------------ po/bg.po | 25 +++++++++++------------ po/ca.po | 25 +++++++++++------------ po/cs.po | 25 +++++++++++------------ po/da.po | 25 +++++++++++------------ po/de.po | 25 +++++++++++------------ po/el.po | 25 +++++++++++------------ po/en.po | 25 +++++++++++------------ po/en_US.po | 48 +++++++++++++++++++++----------------------- po/eo.po | 25 +++++++++++------------ po/es.po | 25 +++++++++++------------ po/fa.po | 25 +++++++++++------------ po/fi.po | 25 +++++++++++------------ po/fr.po | 26 ++++++++++++------------ po/he.po | 25 +++++++++++------------ po/hi.po | 25 +++++++++++------------ po/hu.po | 25 +++++++++++------------ po/it.po | 25 +++++++++++------------ po/ja.po | 26 ++++++++++++------------ po/ko.po | 26 ++++++++++++------------ po/lt.po | 26 ++++++++++++------------ po/ml.po | 25 +++++++++++------------ po/nb_NO.po | 25 +++++++++++------------ po/nl.po | 25 +++++++++++------------ po/or.po | 25 +++++++++++------------ po/pa.po | 25 +++++++++++------------ po/pl.po | 25 +++++++++++------------ po/pt_BR.po | 25 +++++++++++------------ po/pt_PT.po | 25 +++++++++++------------ po/rm.po | 25 +++++++++++------------ po/ro.po | 25 +++++++++++------------ po/ru.po | 25 +++++++++++------------ po/sk.po | 25 +++++++++++------------ po/sl.po | 25 +++++++++++------------ po/sr_RS(a)cyrillic.po | 25 +++++++++++------------ po/sr_RS(a)latin.po | 25 +++++++++++------------ po/sv.po | 25 +++++++++++------------ po/te.po | 25 +++++++++++------------ po/th.po | 25 +++++++++++------------ po/tr.po | 25 +++++++++++------------ po/uk.po | 25 +++++++++++------------ po/wa.po | 25 +++++++++++------------ po/wine.pot | 25 +++++++++++------------ po/zh_CN.po | 25 +++++++++++------------ po/zh_TW.po | 25 +++++++++++------------ programs/attrib/attrib.rc | 25 +++++++++++------------ 46 files changed, 567 insertions(+), 610 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1a75268d72b222543a9d4…
1
0
0
0
Lucas Fialho Zawacki : dinput: Fill dialog with info about the first device by default in config.c.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: 32800de137a8e5f230486e7e93a0736862725aca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=32800de137a8e5f230486e7e9…
Author: Lucas Fialho Zawacki <lfzawacki(a)gmail.com> Date: Tue Sep 13 02:55:00 2011 -0300 dinput: Fill dialog with info about the first device by default in config.c. --- dlls/dinput/config.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/dinput/config.c b/dlls/dinput/config.c index 98a542c..1098259 100644 --- a/dlls/dinput/config.c +++ b/dlls/dinput/config.c @@ -374,6 +374,10 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w data->original_lpdiaf->rgoAction = HeapAlloc(GetProcessHeap(), 0, sizeof(DIACTIONW)*data->lpdiaf->dwNumActions); copy_actions(data->original_lpdiaf, data->lpdiaf); + /* Select the first device and show its actions */ + SendDlgItemMessageW(dialog, IDC_CONTROLLERCOMBO, CB_SETCURSEL, 0, 0); + fill_device_object_list(dialog); + break; }
1
0
0
0
Lucas Fialho Zawacki : dinput: Initialize device count to 0 in config.c.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: 03fa9f627b81c7129d9a7c1591e93f8aa3dd1b82 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03fa9f627b81c7129d9a7c159…
Author: Lucas Fialho Zawacki <lfzawacki(a)gmail.com> Date: Tue Sep 13 02:54:58 2011 -0300 dinput: Initialize device count to 0 in config.c. --- dlls/dinput/config.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/dinput/config.c b/dlls/dinput/config.c index dee76a3..98a542c 100644 --- a/dlls/dinput/config.c +++ b/dlls/dinput/config.c @@ -191,6 +191,7 @@ static void init_devices(HWND dialog, IDirectInput8W *lpDI, DIDevicesData *data, int i; /* Count devices */ + data->ndevices = 0; IDirectInput8_EnumDevicesBySemantics(lpDI, NULL, lpdiaf, count_devices, (LPVOID) data, 0); /* Allocate devices */
1
0
0
0
Dan Kegel : ddraw/tests: Fix compilation on systems that don' t support nameless unions.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: c5d45e8b88c490feaaf5b066b1e2ec8cf17e07cf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c5d45e8b88c490feaaf5b066b…
Author: Dan Kegel <dank(a)kegel.com> Date: Mon Sep 12 14:16:27 2011 -0700 ddraw/tests: Fix compilation on systems that don't support nameless unions. --- dlls/ddraw/tests/visual.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/tests/visual.c b/dlls/ddraw/tests/visual.c index 7a39054..3cb698f 100644 --- a/dlls/ddraw/tests/visual.c +++ b/dlls/ddraw/tests/visual.c @@ -58,7 +58,7 @@ static HRESULT WINAPI enum_z_fmt(DDPIXELFORMAT *fmt, void *ctx) { DDPIXELFORMAT *zfmt = ctx; - if(U1(fmt)->dwZBufferBitDepth > U1(zfmt)->dwZBufferBitDepth) + if(U1(*fmt).dwZBufferBitDepth > U1(*zfmt).dwZBufferBitDepth) { *zfmt = *fmt; }
1
0
0
0
Vincent Povirk : ole32: Discard existing data when creating a new storage on an ILockBytes.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: cb9e572611a4f046f1f538239824fe623947ad81 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cb9e572611a4f046f1f538239…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Sep 12 12:50:18 2011 -0500 ole32: Discard existing data when creating a new storage on an ILockBytes. --- dlls/ole32/storage32.c | 4 ++++ dlls/ole32/tests/storage32.c | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index e983bf3..69a00cd 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -2740,6 +2740,10 @@ static HRESULT StorageImpl_Construct( ULARGE_INTEGER size; BYTE bigBlockBuffer[MAX_BIG_BLOCK_SIZE]; + /* Discard any existing data. */ + size.QuadPart = 0; + ILockBytes_SetSize(This->lockBytes, size); + /* * Initialize all header variables: * - The big block depot consists of one block and it is at block 0 diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index d0e5236..b8c6ada 100644 --- a/dlls/ole32/tests/storage32.c +++ b/dlls/ole32/tests/storage32.c @@ -2971,7 +2971,7 @@ static void test_hglobal_storage_creation(void) r = StgOpenStorageOnILockBytes(ilb, NULL, STGM_READ|STGM_SHARE_EXCLUSIVE, NULL, 0, &stg); - todo_wine ok(r == S_OK, "StgOpenStorageOnILockBytes failed, hr=%x\n", r); + ok(r == S_OK, "StgOpenStorageOnILockBytes failed, hr=%x\n", r); if (SUCCEEDED(r)) {
1
0
0
0
Vincent Povirk : ole32/tests: Test creation of a storage on an ILockBytes containing data.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: 7df35e9b0ff656362600c07768c38a92c69b87ac URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7df35e9b0ff656362600c0776…
Author: Vincent Povirk <vincent(a)codeweavers.com> Date: Mon Sep 12 11:46:46 2011 -0500 ole32/tests: Test creation of a storage on an ILockBytes containing data. --- dlls/ole32/tests/storage32.c | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c index 233ebcc..d0e5236 100644 --- a/dlls/ole32/tests/storage32.c +++ b/dlls/ole32/tests/storage32.c @@ -2943,6 +2943,52 @@ static void test_copyto_recursive(void) ok( r == TRUE, "deleted file\n"); } +static void test_hglobal_storage_creation(void) +{ + ILockBytes *ilb = NULL; + IStorage *stg = NULL; + HRESULT r; + STATSTG stat; + char junk[512]; + ULARGE_INTEGER offset; + + r = CreateILockBytesOnHGlobal(NULL, TRUE, &ilb); + ok(r == S_OK, "CreateILockBytesOnHGlobal failed, hr=%x\n", r); + + offset.QuadPart = 0; + memset(junk, 0xaa, 512); + r = ILockBytes_WriteAt(ilb, offset, junk, 512, NULL); + ok(r == S_OK, "ILockBytes_WriteAt failed, hr=%x\n", r); + + offset.QuadPart = 2000; + r = ILockBytes_WriteAt(ilb, offset, junk, 512, NULL); + ok(r == S_OK, "ILockBytes_WriteAt failed, hr=%x\n", r); + + r = StgCreateDocfileOnILockBytes(ilb, STGM_CREATE|STGM_SHARE_EXCLUSIVE|STGM_READWRITE, 0, &stg); + ok(r == S_OK, "StgCreateDocfileOnILockBytes failed, hr=%x\n", r); + + IStorage_Release(stg); + + r = StgOpenStorageOnILockBytes(ilb, NULL, STGM_READ|STGM_SHARE_EXCLUSIVE, + NULL, 0, &stg); + todo_wine ok(r == S_OK, "StgOpenStorageOnILockBytes failed, hr=%x\n", r); + + if (SUCCEEDED(r)) + { + r = IStorage_Stat(stg, &stat, STATFLAG_NONAME); + ok(r == S_OK, "StgOpenStorageOnILockBytes failed, hr=%x\n", r); + ok(IsEqualCLSID(&stat.clsid, &GUID_NULL), "unexpected CLSID value\n"); + + IStorage_Release(stg); + } + + r = ILockBytes_Stat(ilb, &stat, STATFLAG_NONAME); + ok(r == S_OK, "ILockBytes_Stat failed, hr=%x\n", r); + ok(stat.cbSize.LowPart < 2512, "expected truncated size, got %d\n", stat.cbSize.LowPart); + + ILockBytes_Release(ilb); +} + START_TEST(storage32) { CHAR temp[MAX_PATH]; @@ -2985,4 +3031,5 @@ START_TEST(storage32) test_substorage_enum(); test_copyto_locking(); test_copyto_recursive(); + test_hglobal_storage_creation(); }
1
0
0
0
Henri Verbeet : wined3d: Make the device parameter to wined3d_device_get_vs_consts_f() const.
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: c67ca538bb3e15bd58d2be4a6a29cef4b1945b39 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c67ca538bb3e15bd58d2be4a6…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 12 19:51:19 2011 +0200 wined3d: Make the device parameter to wined3d_device_get_vs_consts_f() const. --- dlls/wined3d/device.c | 2 +- include/wine/wined3d.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ee556c6..1dc6cbc 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2817,7 +2817,7 @@ HRESULT CDECL wined3d_device_set_vs_consts_f(struct wined3d_device *device, return WINED3D_OK; } -HRESULT CDECL wined3d_device_get_vs_consts_f(struct wined3d_device *device, +HRESULT CDECL wined3d_device_get_vs_consts_f(const struct wined3d_device *device, UINT start_register, float *constants, UINT vector4f_count) { int count = min(vector4f_count, device->d3d_vshader_constantF - start_register); diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index 5327beb..26edff1 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -2268,7 +2268,7 @@ struct wined3d_shader * __cdecl wined3d_device_get_vertex_shader(const struct wi HRESULT __cdecl wined3d_device_get_viewport(const struct wined3d_device *device, WINED3DVIEWPORT *viewport); HRESULT __cdecl wined3d_device_get_vs_consts_b(const struct wined3d_device *device, UINT start_register, BOOL *constants, UINT bool_count); -HRESULT __cdecl wined3d_device_get_vs_consts_f(struct wined3d_device *device, +HRESULT __cdecl wined3d_device_get_vs_consts_f(const struct wined3d_device *device, UINT start_register, float *constants, UINT vector4f_count); HRESULT __cdecl wined3d_device_get_vs_consts_i(const struct wined3d_device *device, UINT start_register, int *constants, UINT vector4i_count);
1
0
0
0
Henri Verbeet : wined3d: Rename markTextureStagesDirty() to device_invalidate_texture_stage().
by Alexandre Julliard
13 Sep '11
13 Sep '11
Module: wine Branch: master Commit: 4ba464bd4cad9f04b72e81551a909059303f73a9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4ba464bd4cad9f04b72e81551…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Mon Sep 12 19:51:18 2011 +0200 wined3d: Rename markTextureStagesDirty() to device_invalidate_texture_stage(). --- dlls/wined3d/device.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index fe0d5fe..ee556c6 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2833,7 +2833,7 @@ HRESULT CDECL wined3d_device_get_vs_consts_f(struct wined3d_device *device, return WINED3D_OK; } -static inline void markTextureStagesDirty(struct wined3d_device *device, DWORD stage) +static void device_invalidate_texture_stage(const struct wined3d_device *device, DWORD stage) { DWORD i; @@ -2913,7 +2913,7 @@ static void device_map_fixed_function_samplers(struct wined3d_device *device, co { device_map_stage(device, i, i); device_invalidate_state(device, STATE_SAMPLER(i)); - markTextureStagesDirty(device, i); + device_invalidate_texture_stage(device, i); } } return; @@ -2929,7 +2929,7 @@ static void device_map_fixed_function_samplers(struct wined3d_device *device, co { device_map_stage(device, i, tex); device_invalidate_state(device, STATE_SAMPLER(i)); - markTextureStagesDirty(device, i); + device_invalidate_texture_stage(device, i); } ++tex; @@ -2949,9 +2949,7 @@ static void device_map_psamplers(struct wined3d_device *device, const struct win device_map_stage(device, i, i); device_invalidate_state(device, STATE_SAMPLER(i)); if (i < gl_info->limits.texture_stages) - { - markTextureStagesDirty(device, i); - } + device_invalidate_texture_stage(device, i); } } }
1
0
0
0
← Newer
1
...
54
55
56
57
58
59
60
...
100
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
Results per page:
10
25
50
100
200