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 2008
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1114 discussions
Start a n
N
ew thread
Stefan Dösinger : wined3d: Textureperspective-> misc states.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: b4445e8b98b558603e5e17d9e2268be94b3ac7af URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b4445e8b98b558603e5e17d9e…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jul 2 16:01:46 2008 -0500 wined3d: Textureperspective->misc states. --- dlls/wined3d/state.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 5bd8c62..91c402b 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3826,7 +3826,7 @@ const struct StateEntry FFPStateTable[] = { /* 1, WINED3DRS_TEXTUREHANDLE */ 0 /* Handled in ddraw */, state_undefined }, { /* 2, WINED3DRS_ANTIALIAS */ STATE_RENDER(WINED3DRS_ANTIALIAS), NULL }, { /* 3, WINED3DRS_TEXTUREADDRESS */ 0 /* Handled in ddraw */, state_undefined }, - { /* 4, WINED3DRS_TEXTUREPERSPECTIVE */ STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), state_perspective }, + { /* 4, WINED3DRS_TEXTUREPERSPECTIVE */ STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), NULL }, { /* 5, WINED3DRS_WRAPU */ STATE_RENDER(WINED3DRS_WRAPU), state_wrapu }, { /* 6, WINED3DRS_WRAPV */ STATE_RENDER(WINED3DRS_WRAPV), state_wrapv }, { /* 7, WINED3DRS_ZENABLE */ STATE_RENDER(WINED3DRS_ZENABLE), state_zenable }, @@ -4917,6 +4917,7 @@ const struct StateEntryTemplate misc_state_template[] = { { STATE_VIEWPORT, { STATE_VIEWPORT, viewport_miscpart }}, { STATE_INDEXBUFFER, { STATE_INDEXBUFFER, indexbuffer }}, { STATE_RENDER(WINED3DRS_ANTIALIAS), { STATE_RENDER(WINED3DRS_ANTIALIAS), state_antialias }}, + { STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), { STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), state_perspective }}, {0 /* Terminate */, { 0, 0 }}, };
1
0
0
0
Stefan Dösinger : wined3d: Move WINED3DRS_ANTIALIAS to the misc states.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: cad055ae16e78bcf53a6c91f5bac97c12bfcd063 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cad055ae16e78bcf53a6c91f5…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jul 2 15:50:00 2008 -0500 wined3d: Move WINED3DRS_ANTIALIAS to the misc states. --- dlls/wined3d/state.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 1f47e28..5bd8c62 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -3824,7 +3824,7 @@ const struct StateEntry FFPStateTable[] = /* State name representative, apply function */ { /* 0, Undefined */ 0, state_undefined }, { /* 1, WINED3DRS_TEXTUREHANDLE */ 0 /* Handled in ddraw */, state_undefined }, - { /* 2, WINED3DRS_ANTIALIAS */ STATE_RENDER(WINED3DRS_ANTIALIAS), state_antialias }, + { /* 2, WINED3DRS_ANTIALIAS */ STATE_RENDER(WINED3DRS_ANTIALIAS), NULL }, { /* 3, WINED3DRS_TEXTUREADDRESS */ 0 /* Handled in ddraw */, state_undefined }, { /* 4, WINED3DRS_TEXTUREPERSPECTIVE */ STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE), state_perspective }, { /* 5, WINED3DRS_WRAPU */ STATE_RENDER(WINED3DRS_WRAPU), state_wrapu }, @@ -4916,6 +4916,7 @@ const struct StateEntryTemplate misc_state_template[] = { { STATE_VIEWPORT, { STATE_VIEWPORT, viewport_miscpart }}, { STATE_INDEXBUFFER, { STATE_INDEXBUFFER, indexbuffer }}, + { STATE_RENDER(WINED3DRS_ANTIALIAS), { STATE_RENDER(WINED3DRS_ANTIALIAS), state_antialias }}, {0 /* Terminate */, { 0, 0 }}, };
1
0
0
0
Stefan Dösinger : wined3d: Move pixelshader application to the fragment pipeline.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: f68ac7465ff89ec6144ba529e452113877d7f6fd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f68ac7465ff89ec6144ba529e…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jul 2 15:47:18 2008 -0500 wined3d: Move pixelshader application to the fragment pipeline. --- dlls/wined3d/state.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 41c5828..1f47e28 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -4321,7 +4321,7 @@ const struct StateEntry FFPStateTable[] = { /*18, Vertex sampler 2 */ STATE_SAMPLER(18), sampler }, { /*19, Vertex sampler 3 */ STATE_SAMPLER(19), sampler }, /* Pixel shader */ - { /* , Pixel Shader */ STATE_PIXELSHADER, pixelshader }, + { /* , Pixel Shader */ STATE_PIXELSHADER, NULL }, /* Transform states follow */ { /* 1, undefined */ 0, state_undefined }, { /* 2, WINED3DTS_VIEW */ STATE_TRANSFORM(WINED3DTS_VIEW), NULL }, @@ -5383,6 +5383,7 @@ const struct StateEntryTemplate ffp_fragmentstate_template[] = { { STATE_TEXTURESTAGE(7, WINED3DTSS_ALPHAARG0), { STATE_TEXTURESTAGE(7, WINED3DTSS_ALPHAOP), tex_alphaop }}, { STATE_TEXTURESTAGE(7, WINED3DTSS_RESULTARG), { STATE_TEXTURESTAGE(7, WINED3DTSS_COLOROP), tex_colorop }}, { STATE_TEXTURESTAGE(7, WINED3DTSS_CONSTANT), { 0 /* As long as we don't support D3DTA_CONSTANT */, state_nogl }}, + { STATE_PIXELSHADER, { STATE_PIXELSHADER, pixelshader }}, {0 /* Terminate */, { 0, 0 }}, };
1
0
0
0
Stefan Dösinger : wined3d: Initialize the state table before filling it.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: b24c409ceaba3d5f93e59c1394afee1aad8095ba URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b24c409ceaba3d5f93e59c139…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jul 2 15:27:46 2008 -0500 wined3d: Initialize the state table before filling it. --- dlls/wined3d/state.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 1e698d6..41c5828 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -5418,6 +5418,11 @@ void compile_state_table(struct StateEntry *StateTable, memset(multistate_funcs, 0, sizeof(multistate_funcs)); + for(i = 0; i < STATE_HIGHEST + 1; i++) { + StateTable[i].representative = 0; + StateTable[i].apply = state_undefined; + } + for(type = 0; type < 3; type++) { /* This switch decides the order in which the states are applied */ switch(type) {
1
0
0
0
Hwang YunSong(=?UTF-8?Q?=ED=99=A9=EC=9C=A4=EC=84=B1?=) : winhlp32: Updated Korean resource.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: eebed38b5b7efe27c1af4db24784b54ff3b4104d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eebed38b5b7efe27c1af4db24…
Author: Hwang YunSong(황윤성) <hys545(a)dreamwiz.com> Date: Wed Jul 9 09:54:56 2008 +0900 winhlp32: Updated Korean resource. --- programs/winhlp32/Ko.rc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/winhlp32/Ko.rc b/programs/winhlp32/Ko.rc index ababbe4..18c59ab 100644 --- a/programs/winhlp32/Ko.rc +++ b/programs/winhlp32/Ko.rc @@ -89,7 +89,7 @@ STID_INFO, " STID_NOT_IMPLEMENTED, "�������� �ʾ���" STID_HLPFILE_ERROR_s, "���� ���� `%s'�� �д� ���� ���� ��" STID_INDEX, "����(&C)" -STID_CONTENTS, "Summary" +STID_CONTENTS, "���" STID_BACK, "�ڷ�(&B)" STID_ALL_FILES, "��� ���� (*.*)" STID_HELP_FILES_HLP, "���� ���� (*.hlp)"
1
0
0
0
James Hawkins : msi: Only copy the resulting string if the RegistryValue call succeeded.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: 1fed032a43a23df80de7da6f7dbf23b4ed2a020f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1fed032a43a23df80de7da6f7…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Tue Jul 8 23:56:26 2008 -0500 msi: Only copy the resulting string if the RegistryValue call succeeded. --- dlls/msi/tests/automation.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index 03154e1..2c741e8 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -804,7 +804,7 @@ static HRESULT Installer_RegistryValueI(HKEY hkey, LPCWSTR szKey, int iValue, LP V_I4(&vararg) = iValue; hr = Installer_RegistryValue(hkey, szKey, vararg, &varresult, vtResult); - if (vtResult == VT_BSTR) lstrcpyW(szString, V_BSTR(&varresult)); + if (SUCCEEDED(hr) && vtResult == VT_BSTR) lstrcpyW(szString, V_BSTR(&varresult)); VariantClear(&varresult); return hr; }
1
0
0
0
James Hawkins : msi: Add tests for opening a package from a database.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: 1ed12b76e1b665e74742c27c0f065500f15433d6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1ed12b76e1b665e74742c27c0…
Author: James Hawkins <jhawkins(a)codeweavers.com> Date: Tue Jul 8 23:52:48 2008 -0500 msi: Add tests for opening a package from a database. --- dlls/msi/tests/db.c | 173 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 167 insertions(+), 6 deletions(-) diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c index 10c2a4a..78a6ca2 100644 --- a/dlls/msi/tests/db.c +++ b/dlls/msi/tests/db.c @@ -190,6 +190,27 @@ static UINT create_component_table( MSIHANDLE hdb ) "PRIMARY KEY `Component`)" ); } +static UINT create_custom_action_table( MSIHANDLE hdb ) +{ + return run_query( hdb, 0, + "CREATE TABLE `CustomAction` ( " + "`Action` CHAR(72) NOT NULL, " + "`Type` SHORT NOT NULL, " + "`Source` CHAR(72), " + "`Target` CHAR(255) " + "PRIMARY KEY `Action`)" ); +} + +static UINT create_directory_table( MSIHANDLE hdb ) +{ + return run_query( hdb, 0, + "CREATE TABLE `Directory` ( " + "`Directory` CHAR(255) NOT NULL, " + "`Directory_Parent` CHAR(255), " + "`DefaultDir` CHAR(255) NOT NULL " + "PRIMARY KEY `Directory`)" ); +} + static UINT create_feature_components_table( MSIHANDLE hdb ) { return run_query( hdb, 0, @@ -233,6 +254,22 @@ static UINT add_component_entry( MSIHANDLE hdb, const char *values ) return r; } +static UINT add_custom_action_entry( MSIHANDLE hdb, const char *values ) +{ + char insert[] = "INSERT INTO `CustomAction` " + "(`Action`, `Type`, `Source`, `Target`) " + "VALUES( %s )"; + char *query; + UINT sz, r; + + sz = strlen(values) + sizeof insert; + query = HeapAlloc(GetProcessHeap(),0,sz); + sprintf(query,insert,values); + r = run_query( hdb, 0, query ); + HeapFree(GetProcessHeap(), 0, query); + return r; +} + static UINT add_feature_components_entry( MSIHANDLE hdb, const char *values ) { char insert[] = "INSERT INTO `FeatureComponents` " @@ -2331,12 +2368,7 @@ static MSIHANDLE create_package_db(LPCSTR filename) res = set_summary_info(hdb); - res = run_query( hdb, 0, - "CREATE TABLE `Directory` ( " - "`Directory` CHAR(255) NOT NULL, " - "`Directory_Parent` CHAR(255), " - "`DefaultDir` CHAR(255) NOT NULL " - "PRIMARY KEY `Directory`)" ); + res = create_directory_table(hdb); ok( res == ERROR_SUCCESS , "Failed to create directory table\n" ); return hdb; @@ -6153,6 +6185,134 @@ static void test_storages_table(void) DeleteFileA(msifile); } +static void test_dbtopackage(void) +{ + MSIHANDLE hdb, hpkg; + CHAR package[10]; + CHAR buf[MAX_PATH]; + DWORD size; + UINT r; + + /* create an empty database, transact mode */ + r = MsiOpenDatabase(msifile, MSIDBOPEN_CREATE, &hdb); + ok(r == ERROR_SUCCESS, "Failed to create database\n"); + + set_summary_info(hdb); + + r = create_directory_table(hdb); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = create_custom_action_table(hdb); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = add_custom_action_entry(hdb, "'SetProp', 51, 'MYPROP', 'grape'"); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + sprintf(package, "#%li", hdb); + r = MsiOpenPackage(package, &hpkg); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* property is not set yet */ + size = MAX_PATH; + lstrcpyA(buf, "kiwi"); + r = MsiGetProperty(hpkg, "MYPROP", buf, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(buf, ""), "Expected \"\", got \"%s\"\n", buf); + ok(size == 0, "Expected 0, got %d\n", size); + + /* run the custom action to set the property */ + r = MsiDoAction(hpkg, "SetProp"); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* property is now set */ + size = MAX_PATH; + lstrcpyA(buf, "kiwi"); + r = MsiGetProperty(hpkg, "MYPROP", buf, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(buf, "grape"), "Expected \"grape\", got \"%s\"\n", buf); + ok(size == 5, "Expected 5, got %d\n", size); + + MsiCloseHandle(hpkg); + + /* reset the package */ + r = MsiOpenPackage(package, &hpkg); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* property is not set anymore */ + size = MAX_PATH; + lstrcpyA(buf, "kiwi"); + r = MsiGetProperty(hpkg, "MYPROP", buf, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + todo_wine + { + ok(!lstrcmpA(buf, ""), "Expected \"\", got \"%s\"\n", buf); + ok(size == 0, "Expected 0, got %d\n", size); + } + + MsiCloseHandle(hdb); + MsiCloseHandle(hpkg); + + /* create an empty database, direct mode */ + r = MsiOpenDatabase(msifile, MSIDBOPEN_CREATEDIRECT, &hdb); + ok(r == ERROR_SUCCESS, "Failed to create database\n"); + + set_summary_info(hdb); + + r = create_directory_table(hdb); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = create_custom_action_table(hdb); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + r = add_custom_action_entry(hdb, "'SetProp', 51, 'MYPROP', 'grape'"); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + sprintf(package, "#%li", hdb); + r = MsiOpenPackage(package, &hpkg); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* property is not set yet */ + size = MAX_PATH; + lstrcpyA(buf, "kiwi"); + r = MsiGetProperty(hpkg, "MYPROP", buf, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(buf, ""), "Expected \"\", got \"%s\"\n", buf); + ok(size == 0, "Expected 0, got %d\n", size); + + /* run the custom action to set the property */ + r = MsiDoAction(hpkg, "SetProp"); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* property is now set */ + size = MAX_PATH; + lstrcpyA(buf, "kiwi"); + r = MsiGetProperty(hpkg, "MYPROP", buf, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok(!lstrcmpA(buf, "grape"), "Expected \"grape\", got \"%s\"\n", buf); + ok(size == 5, "Expected 5, got %d\n", size); + + MsiCloseHandle(hpkg); + + /* reset the package */ + r = MsiOpenPackage(package, &hpkg); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* property is not set anymore */ + size = MAX_PATH; + lstrcpyA(buf, "kiwi"); + r = MsiGetProperty(hpkg, "MYPROP", buf, &size); + ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + todo_wine + { + ok(!lstrcmpA(buf, ""), "Expected \"\", got \"%s\"\n", buf); + ok(size == 0, "Expected 0, got %d\n", size); + } + + MsiCloseHandle(hdb); + MsiCloseHandle(hpkg); + DeleteFileA(msifile); +} + START_TEST(db) { test_msidatabase(); @@ -6191,4 +6351,5 @@ START_TEST(db) test_viewmodify_refresh(); test_where_viewmodify(); test_storages_table(); + test_dbtopackage(); }
1
0
0
0
Andrew Talbot : wined3d: Remove const qualifier from output pointers.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: 3e1fad5350e805755cc2bd7e872ff2daf4312a72 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3e1fad5350e805755cc2bd7e8…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Tue Jul 8 22:49:35 2008 +0100 wined3d: Remove const qualifier from output pointers. --- include/wine/wined3d_gl.h | 64 ++++++++++++++++++++++---------------------- 1 files changed, 32 insertions(+), 32 deletions(-) diff --git a/include/wine/wined3d_gl.h b/include/wine/wined3d_gl.h index 2062507..58f0cbc 100644 --- a/include/wine/wined3d_gl.h +++ b/include/wine/wined3d_gl.h @@ -803,7 +803,7 @@ typedef void GLvoid; void (WINE_GLAPI *glAccum) (GLenum op, GLfloat value); void (WINE_GLAPI *glAlphaFunc) (GLenum func, GLclampf ref); -GLboolean (WINE_GLAPI *glAreTexturesResident) (GLsizei n, const GLuint* textures, const GLboolean* residences); +GLboolean (WINE_GLAPI *glAreTexturesResident) (GLsizei n, const GLuint* textures, GLboolean* residences); void (WINE_GLAPI *glArrayElement) (GLint i); void (WINE_GLAPI *glBegin) (GLenum mode); void (WINE_GLAPI *glBindTexture) (GLenum target, GLuint texture); @@ -889,7 +889,7 @@ void (WINE_GLAPI *glEvalMesh1) (GLenum mode, GLint i1, GLint i2); void (WINE_GLAPI *glEvalMesh2) (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); void (WINE_GLAPI *glEvalPoint1) (GLint i); void (WINE_GLAPI *glEvalPoint2) (GLint i, GLint j); -void (WINE_GLAPI *glFeedbackBuffer) (GLsizei size, GLenum type, const GLfloat* buffer); +void (WINE_GLAPI *glFeedbackBuffer) (GLsizei size, GLenum type, GLfloat* buffer); void (WINE_GLAPI *glFinish) (); void (WINE_GLAPI *glFlush) (); void (WINE_GLAPI *glFogf) (GLenum pname, GLfloat param); @@ -899,36 +899,36 @@ void (WINE_GLAPI *glFogiv) (GLenum pname, const GLint* params); void (WINE_GLAPI *glFrontFace) (GLenum mode); void (WINE_GLAPI *glFrustum) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); GLuint (WINE_GLAPI *glGenLists) (GLsizei range); -void (WINE_GLAPI *glGenTextures) (GLsizei n, const GLuint* textures); -void (WINE_GLAPI *glGetBooleanv) (GLenum pname, const GLboolean* params); -void (WINE_GLAPI *glGetClipPlane) (GLenum plane, const GLdouble* equation); -void (WINE_GLAPI *glGetDoublev) (GLenum pname, const GLdouble* params); +void (WINE_GLAPI *glGenTextures) (GLsizei n, GLuint* textures); +void (WINE_GLAPI *glGetBooleanv) (GLenum pname, GLboolean* params); +void (WINE_GLAPI *glGetClipPlane) (GLenum plane, GLdouble* equation); +void (WINE_GLAPI *glGetDoublev) (GLenum pname, GLdouble* params); GLenum (WINE_GLAPI *glGetError) (); -void (WINE_GLAPI *glGetFloatv) (GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetIntegerv) (GLenum pname, const GLint* params); -void (WINE_GLAPI *glGetLightfv) (GLenum light, GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetLightiv) (GLenum light, GLenum pname, const GLint* params); -void (WINE_GLAPI *glGetMapdv) (GLenum target, GLenum query, const GLdouble* v); -void (WINE_GLAPI *glGetMapfv) (GLenum target, GLenum query, const GLfloat* v); -void (WINE_GLAPI *glGetMapiv) (GLenum target, GLenum query, const GLint* v); -void (WINE_GLAPI *glGetMaterialfv) (GLenum face, GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetMaterialiv) (GLenum face, GLenum pname, const GLint* params); -void (WINE_GLAPI *glGetPixelMapfv) (GLenum map, const GLfloat* values); -void (WINE_GLAPI *glGetPixelMapuiv) (GLenum map, const GLuint* values); -void (WINE_GLAPI *glGetPixelMapusv) (GLenum map, const GLushort* values); -void (WINE_GLAPI *glGetPointerv) (GLenum pname, const GLvoid** params); -void (WINE_GLAPI *glGetPolygonStipple) (const GLubyte* mask); +void (WINE_GLAPI *glGetFloatv) (GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetIntegerv) (GLenum pname, GLint* params); +void (WINE_GLAPI *glGetLightfv) (GLenum light, GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetLightiv) (GLenum light, GLenum pname, GLint* params); +void (WINE_GLAPI *glGetMapdv) (GLenum target, GLenum query, GLdouble* v); +void (WINE_GLAPI *glGetMapfv) (GLenum target, GLenum query, GLfloat* v); +void (WINE_GLAPI *glGetMapiv) (GLenum target, GLenum query, GLint* v); +void (WINE_GLAPI *glGetMaterialfv) (GLenum face, GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetMaterialiv) (GLenum face, GLenum pname, GLint* params); +void (WINE_GLAPI *glGetPixelMapfv) (GLenum map, GLfloat* values); +void (WINE_GLAPI *glGetPixelMapuiv) (GLenum map, GLuint* values); +void (WINE_GLAPI *glGetPixelMapusv) (GLenum map, GLushort* values); +void (WINE_GLAPI *glGetPointerv) (GLenum pname, GLvoid** params); +void (WINE_GLAPI *glGetPolygonStipple) (GLubyte* mask); const GLubyte * (WINE_GLAPI *glGetString) (GLenum name); -void (WINE_GLAPI *glGetTexEnvfv) (GLenum target, GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetTexEnviv) (GLenum target, GLenum pname, const GLint* params); -void (WINE_GLAPI *glGetTexGendv) (GLenum coord, GLenum pname, const GLdouble* params); -void (WINE_GLAPI *glGetTexGenfv) (GLenum coord, GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetTexGeniv) (GLenum coord, GLenum pname, const GLint* params); -void (WINE_GLAPI *glGetTexImage) (GLenum target, GLint level, GLenum format, GLenum type, const GLvoid* pixels); -void (WINE_GLAPI *glGetTexLevelParameterfv) (GLenum target, GLint level, GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetTexLevelParameteriv) (GLenum target, GLint level, GLenum pname, const GLint* params); -void (WINE_GLAPI *glGetTexParameterfv) (GLenum target, GLenum pname, const GLfloat* params); -void (WINE_GLAPI *glGetTexParameteriv) (GLenum target, GLenum pname, const GLint* params); +void (WINE_GLAPI *glGetTexEnvfv) (GLenum target, GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetTexEnviv) (GLenum target, GLenum pname, GLint* params); +void (WINE_GLAPI *glGetTexGendv) (GLenum coord, GLenum pname, GLdouble* params); +void (WINE_GLAPI *glGetTexGenfv) (GLenum coord, GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetTexGeniv) (GLenum coord, GLenum pname, GLint* params); +void (WINE_GLAPI *glGetTexImage) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid* pixels); +void (WINE_GLAPI *glGetTexLevelParameterfv) (GLenum target, GLint level, GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetTexLevelParameteriv) (GLenum target, GLint level, GLenum pname, GLint* params); +void (WINE_GLAPI *glGetTexParameterfv) (GLenum target, GLenum pname, GLfloat* params); +void (WINE_GLAPI *glGetTexParameteriv) (GLenum target, GLenum pname, GLint* params); void (WINE_GLAPI *glHint) (GLenum target, GLenum mode); void (WINE_GLAPI *glIndexMask) (GLuint mask); void (WINE_GLAPI *glIndexPointer) (GLenum type, GLsizei stride, const GLvoid* pointer); @@ -1038,7 +1038,7 @@ void (WINE_GLAPI *glRasterPos4iv) (const GLint* v); void (WINE_GLAPI *glRasterPos4s) (GLshort x, GLshort y, GLshort z, GLshort w); void (WINE_GLAPI *glRasterPos4sv) (const GLshort* v); void (WINE_GLAPI *glReadBuffer) (GLenum mode); -void (WINE_GLAPI *glReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels); +void (WINE_GLAPI *glReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); void (WINE_GLAPI *glRectd) (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); void (WINE_GLAPI *glRectdv) (const GLdouble* v1, const GLdouble* v2); void (WINE_GLAPI *glRectf) (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); @@ -1053,7 +1053,7 @@ void (WINE_GLAPI *glRotatef) (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); void (WINE_GLAPI *glScaled) (GLdouble x, GLdouble y, GLdouble z); void (WINE_GLAPI *glScalef) (GLfloat x, GLfloat y, GLfloat z); void (WINE_GLAPI *glScissor) (GLint x, GLint y, GLsizei width, GLsizei height); -void (WINE_GLAPI *glSelectBuffer) (GLsizei size, const GLuint* buffer); +void (WINE_GLAPI *glSelectBuffer) (GLsizei size, GLuint* buffer); void (WINE_GLAPI *glShadeModel) (GLenum mode); void (WINE_GLAPI *glStencilFunc) (GLenum func, GLint ref, GLuint mask); void (WINE_GLAPI *glStencilMask) (GLuint mask);
1
0
0
0
Nikolay Sivov : gdiplus: Implemented GdipDrawClosedCurve and GdipDrawClosedCurveI.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: 55916bb9701d550baf68697e642841088d01354b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=55916bb9701d550baf68697e6…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Wed Jul 9 00:39:31 2008 +0400 gdiplus: Implemented GdipDrawClosedCurve and GdipDrawClosedCurveI. --- dlls/gdiplus/gdiplus.spec | 4 ++-- dlls/gdiplus/graphics.c | 12 ++++++++++++ include/gdiplusflat.h | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 9b272eb..3836b68 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -161,8 +161,8 @@ @ stub GdipDrawCachedBitmap @ stdcall GdipDrawClosedCurve2(ptr ptr ptr long long) @ stdcall GdipDrawClosedCurve2I(ptr ptr ptr long long) -@ stub GdipDrawClosedCurve -@ stub GdipDrawClosedCurveI +@ stdcall GdipDrawClosedCurve(ptr ptr ptr long) +@ stdcall GdipDrawClosedCurveI(ptr ptr ptr long) @ stdcall GdipDrawCurve2(ptr ptr ptr long long) @ stdcall GdipDrawCurve2I(ptr ptr ptr long long) @ stub GdipDrawCurve3 diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 0f82404..893799d 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1045,6 +1045,18 @@ GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen, return ret; } +GpStatus WINGDIPAPI GdipDrawClosedCurve(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPointF *points, INT count) +{ + return GdipDrawClosedCurve2(graphics, pen, points, count, 1.0); +} + +GpStatus WINGDIPAPI GdipDrawClosedCurveI(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPoint *points, INT count) +{ + return GdipDrawClosedCurve2I(graphics, pen, points, count, 1.0); +} + GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension) { diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 7538165..854039c 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -85,6 +85,8 @@ GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,R GpStatus WINGDIPAPI GdipDrawBezierI(GpGraphics*,GpPen*,INT,INT,INT,INT,INT,INT,INT,INT); GpStatus WINGDIPAPI GdipDrawBeziers(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT); GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT); +GpStatus WINGDIPAPI GdipDrawClosedCurve(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT); +GpStatus WINGDIPAPI GdipDrawClosedCurveI(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT); GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,REAL); GpStatus WINGDIPAPI GdipDrawClosedCurve2I(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT,REAL); GpStatus WINGDIPAPI GdipDrawCurve(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT);
1
0
0
0
Nikolay Sivov : gdiplus: Implemeted GdipDrawClosedCurve2 and GdipDrawClosedCurve2I.
by Alexandre Julliard
09 Jul '08
09 Jul '08
Module: wine Branch: master Commit: 8b8864b727671eadd942a8978885efe8b807a9f5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b8864b727671eadd942a8978…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Wed Jul 9 00:39:19 2008 +0400 gdiplus: Implemeted GdipDrawClosedCurve2 and GdipDrawClosedCurve2I. --- dlls/gdiplus/gdiplus.spec | 4 +- dlls/gdiplus/graphics.c | 51 +++++++++++++++++++++++++++++++++++++++++++++ include/gdiplusflat.h | 2 + 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index a1c4849..9b272eb 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -159,8 +159,8 @@ @ stdcall GdipDrawBeziers(ptr ptr ptr long) @ stdcall GdipDrawBeziersI(ptr ptr ptr long) @ stub GdipDrawCachedBitmap -@ stub GdipDrawClosedCurve2 -@ stub GdipDrawClosedCurve2I +@ stdcall GdipDrawClosedCurve2(ptr ptr ptr long long) +@ stdcall GdipDrawClosedCurve2I(ptr ptr ptr long long) @ stub GdipDrawClosedCurve @ stub GdipDrawClosedCurveI @ stdcall GdipDrawCurve2(ptr ptr ptr long long) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 6c9aa15..0f82404 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1045,6 +1045,57 @@ GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen, return ret; } +GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPointF *points, INT count, REAL tension) +{ + GpPointF *ptf; + GpStatus stat; + + if(!graphics || !pen || !points || count <= 0) + return InvalidParameter; + + /* make a full points copy.. */ + ptf = GdipAlloc(sizeof(GpPointF)*(count+1)); + if(!ptf) + return OutOfMemory; + memcpy(ptf, points, sizeof(GpPointF)*count); + + /* ..and add a first point as a last one */ + ptf[count] = ptf[0]; + + stat = GdipDrawCurve2(graphics, pen, ptf, count + 1, tension); + + GdipFree(ptf); + + return stat; +} + +GpStatus WINGDIPAPI GdipDrawClosedCurve2I(GpGraphics *graphics, GpPen *pen, + GDIPCONST GpPoint *points, INT count, REAL tension) +{ + GpPointF *ptf; + GpStatus stat; + INT i; + + if(!points || count <= 0) + return InvalidParameter; + + ptf = GdipAlloc(sizeof(GpPointF)*count); + if(!ptf) + return OutOfMemory; + + for(i = 0; i < count; i++){ + ptf[i].X = (REAL)points[i].X; + ptf[i].Y = (REAL)points[i].Y; + } + + stat = GdipDrawClosedCurve2(graphics, pen, ptf, count, tension); + + GdipFree(ptf); + + return stat; +} + GpStatus WINGDIPAPI GdipDrawCurve(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count) { diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 3deca53..7538165 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -85,6 +85,8 @@ GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,R GpStatus WINGDIPAPI GdipDrawBezierI(GpGraphics*,GpPen*,INT,INT,INT,INT,INT,INT,INT,INT); GpStatus WINGDIPAPI GdipDrawBeziers(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT); GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT); +GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,REAL); +GpStatus WINGDIPAPI GdipDrawClosedCurve2I(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT,REAL); GpStatus WINGDIPAPI GdipDrawCurve(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT); GpStatus WINGDIPAPI GdipDrawCurveI(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT); GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics*,GpPen*,GDIPCONST GpPointF*,INT,REAL);
1
0
0
0
← Newer
1
...
74
75
76
77
78
79
80
...
112
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Results per page:
10
25
50
100
200