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
February 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
674 discussions
Start a n
N
ew thread
Austin English : shell32/tests: Don't check return values inside of if(0) ( LLVM/Clang).
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: 8a3294e8b67b5313f4c408f96f2d14735ecdc038 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8a3294e8b67b5313f4c408f96…
Author: Austin English <austinenglish(a)gmail.com> Date: Thu Feb 10 11:57:20 2011 -0800 shell32/tests: Don't check return values inside of if(0) (LLVM/Clang). --- dlls/shell32/tests/shlfolder.c | 43 +++++++++++++++++++-------------------- 1 files changed, 21 insertions(+), 22 deletions(-) diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c index ea675b9..9dd6296 100644 --- a/dlls/shell32/tests/shlfolder.c +++ b/dlls/shell32/tests/shlfolder.c @@ -2369,7 +2369,7 @@ static void test_SHCreateShellItem(void) if(0) { /* Crashes under windows 7 */ - ret = pSHCreateItemFromParsingName(NULL, NULL, &IID_IShellItem, NULL); + pSHCreateItemFromParsingName(NULL, NULL, &IID_IShellItem, NULL); } shellitem = (void*)0xdeadbeef; @@ -2411,7 +2411,7 @@ static void test_SHCreateShellItem(void) if(0) { /* Crashes under win7 */ - ret = pSHCreateItemFromIDList(NULL, &IID_IShellItem, NULL); + pSHCreateItemFromIDList(NULL, &IID_IShellItem, NULL); } ret = pSHCreateItemFromIDList(NULL, &IID_IShellItem, (void**)&shellitem); @@ -2497,7 +2497,7 @@ static void test_SHGetNameFromIDList(void) if(0) { /* Crashes under win7 */ - hres = pSHGetNameFromIDList(NULL, 0, NULL); + pSHGetNameFromIDList(NULL, 0, NULL); } hres = pSHGetNameFromIDList(NULL, 0, &name_string); @@ -2639,7 +2639,7 @@ static void test_SHGetItemFromDataObject(void) if(0) { /* Crashes under win7 */ - hres = pSHGetItemFromDataObject(NULL, 0, &IID_IShellItem, NULL); + pSHGetItemFromDataObject(NULL, 0, &IID_IShellItem, NULL); } hres = pSHGetItemFromDataObject(NULL, 0, &IID_IShellItem, (void**)&psv); @@ -2830,9 +2830,9 @@ static void test_ShellItemCompare(void) if(0) { /* Crashes on native (win7, winxp) */ - hr = IShellItem_Compare(psi_a, NULL, 0, NULL); - hr = IShellItem_Compare(psi_a, psi_b, 0, NULL); - hr = IShellItem_Compare(psi_a, NULL, 0, &order); + IShellItem_Compare(psi_a, NULL, 0, NULL); + IShellItem_Compare(psi_a, psi_b, 0, NULL); + IShellItem_Compare(psi_a, NULL, 0, &order); } /* Basics */ @@ -3204,9 +3204,9 @@ static void test_SHGetItemFromObject(void) if(0) { /* Crashes with Windows 7 */ - hres = pSHGetItemFromObject((IUnknown*)psfdesktop, &IID_IUnknown, NULL); - hres = pSHGetItemFromObject(NULL, &IID_IUnknown, NULL); - hres = pSHGetItemFromObject((IUnknown*)psfdesktop, NULL, (void**)&punk); + pSHGetItemFromObject((IUnknown*)psfdesktop, &IID_IUnknown, NULL); + pSHGetItemFromObject(NULL, &IID_IUnknown, NULL); + pSHGetItemFromObject((IUnknown*)psfdesktop, NULL, (void**)&punk); } hres = pSHGetItemFromObject(NULL, &IID_IUnknown, (void**)&punk); @@ -3340,7 +3340,7 @@ static void test_SHCreateShellItemArray(void) if(0) { /* Crashes in Windows 7 */ - hr = IShellItemArray_GetCount(psia, NULL); + IShellItemArray_GetCount(psia, NULL); } IShellItemArray_GetCount(psia, &numitems); @@ -3384,9 +3384,9 @@ static void test_SHCreateShellItemArray(void) if(0) { /* Crashes under Windows 7 */ - hr = pSHCreateShellItemArrayFromShellItem(NULL, &IID_IShellItemArray, NULL); - hr = pSHCreateShellItemArrayFromShellItem(NULL, &IID_IShellItemArray, (void**)&psia); - hr = pSHCreateShellItemArrayFromShellItem(psi, &IID_IShellItemArray, NULL); + pSHCreateShellItemArrayFromShellItem(NULL, &IID_IShellItemArray, NULL); + pSHCreateShellItemArrayFromShellItem(NULL, &IID_IShellItemArray, (void**)&psia); + pSHCreateShellItemArrayFromShellItem(psi, &IID_IShellItemArray, NULL); } hr = pSHCreateItemFromIDList(pidl_testdir, &IID_IShellItem, (void**)&psi); @@ -3437,7 +3437,7 @@ static void test_SHCreateShellItemArray(void) if(0) { /* Crashes under Windows 7 */ - hr = pSHCreateShellItemArrayFromDataObject(NULL, &IID_IShellItemArray, NULL); + pSHCreateShellItemArrayFromDataObject(NULL, &IID_IShellItemArray, NULL); } hr = pSHCreateShellItemArrayFromDataObject(NULL, &IID_IShellItemArray, (void**)&psia); ok(hr == E_INVALIDARG, "Got 0x%08x\n", hr); @@ -3548,8 +3548,8 @@ static void test_ShellItemBindToHandler(void) if(0) { /* Crashes under Windows 7 */ - hr = IShellItem_BindToHandler(psi, NULL, NULL, NULL, NULL); - hr = IShellItem_BindToHandler(psi, NULL, &IID_IUnknown, &IID_IUnknown, NULL); + IShellItem_BindToHandler(psi, NULL, NULL, NULL, NULL); + IShellItem_BindToHandler(psi, NULL, &IID_IUnknown, &IID_IUnknown, NULL); } hr = IShellItem_BindToHandler(psi, NULL, &IID_IUnknown, &IID_IUnknown, (void**)&punk); ok(hr == MK_E_NOOBJECT, "Got 0x%08x\n", hr); @@ -3702,8 +3702,7 @@ void test_ShellItemGetAttributes(void) if(0) { /* Crashes on native (Win 7) */ - hr = IShellItem_GetAttributes(psi, 0, NULL); - ok(hr == S_OK, "Got 0x%08x\n", hr); + IShellItem_GetAttributes(psi, 0, NULL); } /* Test GetAttributes on the desktop folder. */ @@ -3733,9 +3732,9 @@ static void test_SHParseDisplayName(void) if (0) { /* crashes on native */ - hr = pSHParseDisplayName(NULL, NULL, NULL, 0, NULL); + pSHParseDisplayName(NULL, NULL, NULL, 0, NULL); nameW[0] = 0; - hr = pSHParseDisplayName(nameW, NULL, NULL, 0, NULL); + pSHParseDisplayName(nameW, NULL, NULL, 0, NULL); } pidl1 = (LPITEMIDLIST)0xdeadbeef; @@ -3792,7 +3791,7 @@ static void test_desktop_IPersist(void) if (0) { /* crashes on native */ - hr = IPersist_GetClassID(persist, NULL); + IPersist_GetClassID(persist, NULL); } memset(&clsid, 0, sizeof(clsid)); hr = IPersist_GetClassID(persist, &clsid);
1
0
0
0
Austin English : shell32/tests: Make sure return values are used (LLVM/ Clang).
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: c2671133dd9505e28453ec9f7909698da0bee5a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c2671133dd9505e28453ec9f7…
Author: Austin English <austinenglish(a)gmail.com> Date: Thu Feb 10 13:28:24 2011 -0800 shell32/tests: Make sure return values are used (LLVM/Clang). --- dlls/shell32/tests/shlfileop.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index 810a745..b2d778c 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -2058,6 +2058,7 @@ static void test_sh_create_dir(void) ok(ERROR_ALREADY_EXISTS == ret, "SHCreateDirectoryEx should fail to create existing directory, ret = %d\n", ret); ret = pSHCreateDirectoryExA(NULL, "c:\\testdir3", NULL); + ok(ERROR_SUCCESS == ret, "SHCreateDirectoryEx failed to create directory, ret = %d\n", ret); ok(file_exists("c:\\testdir3"), "The directory is not created\n"); }
1
0
0
0
Austin English : shell32/tests: Don't check return values inside of if(0) ( LLVM/Clang).
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: df846e89ebb2c5d7b863b760e7d16d41ee0e21a0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=df846e89ebb2c5d7b863b760e…
Author: Austin English <austinenglish(a)gmail.com> Date: Thu Feb 10 13:28:20 2011 -0800 shell32/tests: Don't check return values inside of if(0) (LLVM/Clang). --- dlls/shell32/tests/shfldr_special.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/tests/shfldr_special.c b/dlls/shell32/tests/shfldr_special.c index 2374d7c..cfb31be 100644 --- a/dlls/shell32/tests/shfldr_special.c +++ b/dlls/shell32/tests/shfldr_special.c @@ -150,9 +150,9 @@ static void test_printers_folder(void) if (0) { /* crashes on XP */ - hr = IShellFolder2_GetDetailsOf(folder, NULL, 0, NULL); - hr = IShellFolder2_GetDefaultColumnState(folder, 0, NULL); - hr = IPersistFolder2_GetCurFolder(pf, NULL); + IShellFolder2_GetDetailsOf(folder, NULL, 0, NULL); + IShellFolder2_GetDefaultColumnState(folder, 0, NULL); + IPersistFolder2_GetCurFolder(pf, NULL); } /* 5 columns defined */
1
0
0
0
Austin English : shell32/tests: Don't check return values inside of if(0) ( LLVM/Clang).
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: d6cd0e999e6cdf54b8d45d408be1cae11a01a940 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d6cd0e999e6cdf54b8d45d408…
Author: Austin English <austinenglish(a)gmail.com> Date: Thu Feb 10 13:28:17 2011 -0800 shell32/tests: Don't check return values inside of if(0) (LLVM/Clang). --- dlls/shell32/tests/shellpath.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c index 2a86eac..d81ce80 100644 --- a/dlls/shell32/tests/shellpath.c +++ b/dlls/shell32/tests/shellpath.c @@ -358,7 +358,7 @@ static void test_parameters(void) BOOL ret; if (0) - ret = pSHGetSpecialFolderPathA(NULL, NULL, CSIDL_BITBUCKET, FALSE); + pSHGetSpecialFolderPathA(NULL, NULL, CSIDL_BITBUCKET, FALSE); /* odd but true: calling with a NULL path still succeeds if it's a real * dir (on some windows platform). on winME it generates exception.
1
0
0
0
Austin English : shell32/tests: Make sure return values are used (LLVM/ Clang).
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: 75f8de0d4f7fbd0b7d99e96bcd2730cb2bec83a8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=75f8de0d4f7fbd0b7d99e96bc…
Author: Austin English <austinenglish(a)gmail.com> Date: Thu Feb 10 13:28:13 2011 -0800 shell32/tests: Make sure return values are used (LLVM/Clang). --- dlls/shell32/tests/shelllink.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index bdcffde..d28cff0 100644 --- a/dlls/shell32/tests/shelllink.c +++ b/dlls/shell32/tests/shelllink.c @@ -431,7 +431,7 @@ void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int save_fails) if (0) { /* crashes on XP */ - r = IPersistFile_GetCurFile(pf, NULL); + IPersistFile_GetCurFile(pf, NULL); } /* test GetCurFile before ::Save */ @@ -760,6 +760,8 @@ static void test_load_save(void) check_lnk(lnkfile, &desc, 0x0); r=pGetShortPathNameA(mydir, mypath, sizeof(mypath)); + ok(r<sizeof(mypath), "GetShortPathName failed (%d), err %d\n", r, GetLastError()); + strcpy(realpath, mypath); strcat(realpath, "\\test.txt"); strcat(mypath, "\\\\test.txt"); @@ -809,6 +811,7 @@ static void test_load_save(void) check_lnk(lnkfile, &desc, 0x4); r = DeleteFileA(realpath); + ok(r, "failed to delete file %s (%d)\n", realpath, GetLastError()); /* FIXME: Also test saving a .lnk pointing to a pidl that cannot be * represented as a path. @@ -885,7 +888,7 @@ static void test_datalink(void) if (0) { /* the following crashes */ - r = IShellLinkDataList_GetFlags( dl, NULL ); + IShellLinkDataList_GetFlags( dl, NULL ); } flags = 0;
1
0
0
0
Rico Schüller : d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDescByName().
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: cacff4b3a0e49d2e47f87ae8ec5fb88096d288cb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cacff4b3a0e49d2e47f87ae8e…
Author: Rico Schüller <kgbricola(a)web.de> Date: Thu Feb 10 20:06:12 2011 +0100 d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDescByName(). --- dlls/d3dcompiler_43/reflection.c | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c index f3646e8..e1ba543 100644 --- a/dlls/d3dcompiler_43/reflection.c +++ b/dlls/d3dcompiler_43/reflection.c @@ -296,9 +296,32 @@ static struct ID3D11ShaderReflectionVariable * STDMETHODCALLTYPE d3dcompiler_sha static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetResourceBindingDescByName( ID3D11ShaderReflection *iface, LPCSTR name, D3D11_SHADER_INPUT_BIND_DESC *desc) { - FIXME("iface %p, name %s, desc %p stub!\n", iface, name, desc); + struct d3dcompiler_shader_reflection *This = impl_from_ID3D11ShaderReflection(iface); + unsigned int i; - return E_NOTIMPL; + TRACE("iface %p, name %s, desc %p\n", iface, debugstr_a(name), desc); + + if (!desc || !name) + { + WARN("Invalid argument specified\n"); + return E_INVALIDARG; + } + + for (i = 0; i < This->bound_resource_count; ++i) + { + D3D11_SHADER_INPUT_BIND_DESC *d = &This->bound_resources[i]; + + if (!strcmp(d->Name, name)) + { + TRACE("Returning D3D11_SHADER_INPUT_BIND_DESC %p.\n", d); + *desc = *d; + return S_OK; + } + } + + WARN("Invalid name specified\n"); + + return E_INVALIDARG; } static UINT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetMovInstructionCount(
1
0
0
0
Rico Schüller : d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDesc().
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: 162233eb6384b4c553585217ec620c4ba424a666 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=162233eb6384b4c553585217e…
Author: Rico Schüller <kgbricola(a)web.de> Date: Thu Feb 10 20:06:07 2011 +0100 d3dcompiler: Implement ID3DShaderReflection::GetResourceBindingDesc(). --- dlls/d3dcompiler_43/reflection.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c index 9677075..f3646e8 100644 --- a/dlls/d3dcompiler_43/reflection.c +++ b/dlls/d3dcompiler_43/reflection.c @@ -216,9 +216,19 @@ static struct ID3D11ShaderReflectionConstantBuffer * STDMETHODCALLTYPE d3dcompil static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetResourceBindingDesc( ID3D11ShaderReflection *iface, UINT index, D3D11_SHADER_INPUT_BIND_DESC *desc) { - FIXME("iface %p, index %u, desc %p stub!\n", iface, index, desc); + struct d3dcompiler_shader_reflection *This = impl_from_ID3D11ShaderReflection(iface); - return E_NOTIMPL; + TRACE("iface %p, index %u, desc %p\n", iface, index, desc); + + if (!desc || index >= This->bound_resource_count) + { + WARN("Invalid argument specified\n"); + return E_INVALIDARG; + } + + *desc = This->bound_resources[index]; + + return S_OK; } static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetInputParameterDesc(
1
0
0
0
Rico Schüller : d3dcompiler: Parse bound resources.
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: 5ad824a1780a0d746250e21209dad6ac8268d3f0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5ad824a1780a0d746250e2120…
Author: Rico Schüller <kgbricola(a)web.de> Date: Thu Feb 10 20:05:59 2011 +0100 d3dcompiler: Parse bound resources. --- dlls/d3dcompiler_43/d3dcompiler_private.h | 3 + dlls/d3dcompiler_43/reflection.c | 101 +++++++++++++++++++++++++--- 2 files changed, 93 insertions(+), 11 deletions(-) diff --git a/dlls/d3dcompiler_43/d3dcompiler_private.h b/dlls/d3dcompiler_43/d3dcompiler_private.h index d69b88c..bc99322 100644 --- a/dlls/d3dcompiler_43/d3dcompiler_private.h +++ b/dlls/d3dcompiler_43/d3dcompiler_private.h @@ -70,6 +70,7 @@ struct d3dcompiler_shader_reflection ID3D11ShaderReflection ID3D11ShaderReflection_iface; LONG refcount; + DWORD target; char *creator; UINT flags; UINT version; @@ -106,6 +107,8 @@ struct d3dcompiler_shader_reflection struct d3dcompiler_shader_signature *isgn; struct d3dcompiler_shader_signature *osgn; struct d3dcompiler_shader_signature *pcsg; + char *resource_string; + D3D11_SHADER_INPUT_BIND_DESC *bound_resources; }; /* reflection handling */ diff --git a/dlls/d3dcompiler_43/reflection.c b/dlls/d3dcompiler_43/reflection.c index 96adb04..9677075 100644 --- a/dlls/d3dcompiler_43/reflection.c +++ b/dlls/d3dcompiler_43/reflection.c @@ -85,6 +85,8 @@ static void reflection_cleanup(struct d3dcompiler_shader_reflection *ref) HeapFree(GetProcessHeap(), 0, ref->pcsg); } + HeapFree(GetProcessHeap(), 0, ref->bound_resources); + HeapFree(GetProcessHeap(), 0, ref->resource_string); HeapFree(GetProcessHeap(), 0, ref->creator); } @@ -506,42 +508,119 @@ static HRESULT d3dcompiler_parse_rdef(struct d3dcompiler_shader_reflection *r, c { const char *ptr = data; DWORD size = data_size >> 2; - DWORD offset; + DWORD offset, cbuffer_offset, resource_offset, creator_offset; + unsigned int i; + unsigned int string_data_offset; + unsigned int string_data_size; + char *string_data = NULL, *creator = NULL; + D3D11_SHADER_INPUT_BIND_DESC *bound_resources = NULL; + HRESULT hr; TRACE("Size %u\n", size); read_dword(&ptr, &r->constant_buffer_count); TRACE("Constant buffer count: %u\n", r->constant_buffer_count); - read_dword(&ptr, &offset); - TRACE("Constant buffer offset: %x\n", offset); + read_dword(&ptr, &cbuffer_offset); + TRACE("Constant buffer offset: %#x\n", cbuffer_offset); read_dword(&ptr, &r->bound_resource_count); TRACE("Bound resource count: %u\n", r->bound_resource_count); - read_dword(&ptr, &offset); - TRACE("Bound resource offset: %x\n", offset); + read_dword(&ptr, &resource_offset); + TRACE("Bound resource offset: %#x\n", resource_offset); - skip_dword_unknown(&ptr, 1); + read_dword(&ptr, &r->target); + TRACE("Target: %#x\n", r->target); read_dword(&ptr, &r->flags); TRACE("Flags: %u\n", r->flags); - read_dword(&ptr, &offset); - TRACE("Creator at offset %#x.\n", offset); + read_dword(&ptr, &creator_offset); + TRACE("Creator at offset %#x.\n", creator_offset); - if (!copy_name(data + offset, &r->creator)) + if (!copy_name(data + creator_offset, &creator)) { ERR("Failed to copy name.\n"); return E_OUTOFMEMORY; } - TRACE("Creator: %s.\n", debugstr_a(r->creator)); + TRACE("Creator: %s.\n", debugstr_a(creator)); + + /* todo: Parse RD11 */ + if ((r->target & 0x0000ffff) >= 0x500) + { + skip_dword_unknown(&ptr, 8); + } + + if (r->bound_resource_count) + { + /* 8 for each bind desc */ + string_data_offset = resource_offset + r->bound_resource_count * 8 * sizeof(DWORD); + string_data_size = (cbuffer_offset ? cbuffer_offset : creator_offset) - string_data_offset; + + string_data = HeapAlloc(GetProcessHeap(), 0, string_data_size); + if (!string_data) + { + ERR("Failed to allocate string data memory.\n"); + hr = E_OUTOFMEMORY; + goto err_out; + } + memcpy(string_data, data + string_data_offset, string_data_size); + + bound_resources = HeapAlloc(GetProcessHeap(), 0, r->bound_resource_count * sizeof(*bound_resources)); + if (!bound_resources) + { + ERR("Failed to allocate resources memory.\n"); + hr = E_OUTOFMEMORY; + goto err_out; + } - /* todo: Parse D3D11_SHADER_INPUT_BIND_DESC Structure */ + ptr = data + resource_offset; + for (i = 0; i < r->bound_resource_count; i++) + { + D3D11_SHADER_INPUT_BIND_DESC *desc = &bound_resources[i]; + + read_dword(&ptr, &offset); + desc->Name = string_data + (offset - string_data_offset); + TRACE("Input bind Name: %s\n", debugstr_a(desc->Name)); + + read_dword(&ptr, &desc->Type); + TRACE("Input bind Type: %#x\n", desc->Type); + + read_dword(&ptr, &desc->ReturnType); + TRACE("Input bind ReturnType: %#x\n", desc->ReturnType); + + read_dword(&ptr, &desc->Dimension); + TRACE("Input bind Dimension: %#x\n", desc->Dimension); + + read_dword(&ptr, &desc->NumSamples); + TRACE("Input bind NumSamples: %u\n", desc->NumSamples); + + read_dword(&ptr, &desc->BindPoint); + TRACE("Input bind BindPoint: %u\n", desc->BindPoint); + + read_dword(&ptr, &desc->BindCount); + TRACE("Input bind BindCount: %u\n", desc->BindCount); + + read_dword(&ptr, &desc->uFlags); + TRACE("Input bind uFlags: %u\n", desc->uFlags); + } + } /* todo: Parse Constant buffers */ + r->creator = creator; + r->resource_string = string_data; + r->bound_resources = bound_resources; + return S_OK; + +err_out: + HeapFree(GetProcessHeap(), 0, bound_resources); + HeapFree(GetProcessHeap(), 0, string_data); + HeapFree(GetProcessHeap(), 0, creator); + + return hr; } HRESULT d3dcompiler_parse_signature(struct d3dcompiler_shader_signature *s, struct dxbc_section *section)
1
0
0
0
Max TenEyck Woodbury : c2man: Add header' s subdirectory and a link to its source file in the 'IMPLEMENTATION' notes.
by Alexandre Julliard
14 Feb '11
14 Feb '11
Module: wine Branch: master Commit: de6a2528494a5db0a3e37bab7a334244c429732d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=de6a2528494a5db0a3e37bab7…
Author: Max TenEyck Woodbury <max(a)mtew.isa-geek.net> Date: Wed Feb 9 20:07:23 2011 -0500 c2man: Add header's subdirectory and a link to its source file in the 'IMPLEMENTATION' notes. --- tools/c2man.pl | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/c2man.pl b/tools/c2man.pl index 984563d..db9f25f 100755 --- a/tools/c2man.pl +++ b/tools/c2man.pl @@ -860,7 +860,8 @@ sub process_comment($) $tmp =~ s/\n.*//g; if ($tmp ne "") { - $h_file = `basename $tmp`; + $h_file = "$tmp"; + $h_file =~ s|^.*/\./||; } } } @@ -874,7 +875,8 @@ sub process_comment($) $tmp =~ s/\n.*//g; if ($tmp ne "") { - $h_file = `basename $tmp`; + $h_file = "$tmp"; + $h_file =~ s|^.*/\./||; } } } @@ -886,7 +888,7 @@ sub process_comment($) } else { - $h_file = "Defined in \"".$h_file."\"."; + $h_file = "Declared in \"".$h_file."\"."; } } @@ -1611,6 +1613,7 @@ sub output_api_comment($) { # Link to the file in WineHQ cvs s/^(Implemented in \")(.+?)(\"\.)/$1$2$3 http:\/\/source.winehq.org\/source\/$2/g; + s/^(Declared in \")(.+?)(\"\.)/$1$2$3 http:\/\/source.winehq.org\/source\/include\/$2/g; } # Highlight strings s/(\".+?\")/$fmt[2]$1$fmt[3]/g; @@ -2265,7 +2268,7 @@ while(defined($_ = shift @ARGV)) /^L$/ && do { last; }; /^w$/ && do { @opt_spec_file_list = (@opt_spec_file_list, shift @ARGV); last; }; s/^I// && do { if ($_ ne ".") { - foreach my $include (`find $_ -type d ! -name tests`) { + foreach my $include (`find $_/./ -type d ! -name tests`) { $include =~ s/\n//; $include = $include."/*.h"; $include =~ s/\/\//\//g;
1
0
0
0
Juan Lang : crypt32: Don't attempt to find the length of a NULL string ( valgrind).
by Alexandre Julliard
11 Feb '11
11 Feb '11
Module: wine Branch: master Commit: 9e6de30f8feb8eb0a5fbbfd88f34c7358f7d6e6b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9e6de30f8feb8eb0a5fbbfd88…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Feb 10 08:52:21 2011 -0800 crypt32: Don't attempt to find the length of a NULL string (valgrind). --- dlls/crypt32/encode.c | 48 ++++++++++++++++++++++++++++++++++++------------ 1 files changed, 36 insertions(+), 12 deletions(-) diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c index e14ff19..825eb44 100644 --- a/dlls/crypt32/encode.c +++ b/dlls/crypt32/encode.c @@ -1012,8 +1012,12 @@ static BOOL CRYPT_AsnEncodeUTF8String(const CERT_NAME_VALUE *value, LPCWSTR str = (LPCWSTR)value->Value.pbData; DWORD bytesNeeded, lenBytes, encodedLen, strLen; - strLen = value->Value.cbData ? value->Value.cbData / sizeof(WCHAR) : - strlenW(str); + if (value->Value.cbData) + strLen = value->Value.cbData / sizeof(WCHAR); + else if (str) + strLen = strlenW(str); + else + strLen = 0; encodedLen = WideCharToMultiByte(CP_UTF8, 0, str, strLen, NULL, 0, NULL, NULL); CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); @@ -1992,8 +1996,12 @@ static BOOL CRYPT_AsnEncodeUnicodeStringCoerce(const CERT_NAME_VALUE *value, LPCWSTR str = (LPCWSTR)value->Value.pbData; DWORD bytesNeeded, lenBytes, encodedLen; - encodedLen = value->Value.cbData ? value->Value.cbData / sizeof(WCHAR) : - strlenW(str); + if (value->Value.cbData) + encodedLen = value->Value.cbData / sizeof(WCHAR); + else if (str) + encodedLen = strlenW(str); + else + encodedLen = 0; CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); bytesNeeded = 1 + lenBytes + encodedLen; if (!pbEncoded) @@ -2025,8 +2033,12 @@ static BOOL CRYPT_AsnEncodeNumericString(const CERT_NAME_VALUE *value, LPCWSTR str = (LPCWSTR)value->Value.pbData; DWORD bytesNeeded, lenBytes, encodedLen; - encodedLen = value->Value.cbData ? value->Value.cbData / sizeof(WCHAR) : - strlenW(str); + if (value->Value.cbData) + encodedLen = value->Value.cbData / sizeof(WCHAR); + else if (str) + encodedLen = strlenW(str); + else + encodedLen = 0; CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); bytesNeeded = 1 + lenBytes + encodedLen; if (!pbEncoded) @@ -2079,8 +2091,12 @@ static BOOL CRYPT_AsnEncodePrintableString(const CERT_NAME_VALUE *value, LPCWSTR str = (LPCWSTR)value->Value.pbData; DWORD bytesNeeded, lenBytes, encodedLen; - encodedLen = value->Value.cbData ? value->Value.cbData / sizeof(WCHAR) : - strlenW(str); + if (value->Value.cbData) + encodedLen = value->Value.cbData / sizeof(WCHAR); + else if (str) + encodedLen = strlenW(str); + else + encodedLen = 0; CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); bytesNeeded = 1 + lenBytes + encodedLen; if (!pbEncoded) @@ -2126,8 +2142,12 @@ static BOOL CRYPT_AsnEncodeIA5String(const CERT_NAME_VALUE *value, LPCWSTR str = (LPCWSTR)value->Value.pbData; DWORD bytesNeeded, lenBytes, encodedLen; - encodedLen = value->Value.cbData ? value->Value.cbData / sizeof(WCHAR) : - strlenW(str); + if (value->Value.cbData) + encodedLen = value->Value.cbData / sizeof(WCHAR); + else if (str) + encodedLen = strlenW(str); + else + encodedLen = 0; CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); bytesNeeded = 1 + lenBytes + encodedLen; if (!pbEncoded) @@ -2174,8 +2194,12 @@ static BOOL CRYPT_AsnEncodeUniversalString(const CERT_NAME_VALUE *value, DWORD bytesNeeded, lenBytes, strLen; /* FIXME: doesn't handle composite characters */ - strLen = value->Value.cbData ? value->Value.cbData / sizeof(WCHAR) : - strlenW(str); + if (value->Value.cbData) + strLen = value->Value.cbData / sizeof(WCHAR); + else if (str) + strLen = strlenW(str); + else + strLen = 0; CRYPT_EncodeLen(strLen * 4, NULL, &lenBytes); bytesNeeded = 1 + lenBytes + strLen * 4; if (!pbEncoded)
1
0
0
0
← Newer
1
...
36
37
38
39
40
41
42
...
68
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
Results per page:
10
25
50
100
200