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
October 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
1216 discussions
Start a n
N
ew thread
Juan Lang : crypt32: Correct another chain status discrepancy with Windows.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: eeec9bf349e620fdc5d8653229bbe700c2300db7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eeec9bf349e620fdc5d865322…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Oct 16 16:56:56 2008 -0700 crypt32: Correct another chain status discrepancy with Windows. --- dlls/crypt32/chain.c | 5 ++++- dlls/crypt32/tests/chain.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index 9365a22..1c113c1 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -754,10 +754,13 @@ static void CRYPT_CheckSimpleChain(PCertificateChainEngine engine, if (CRYPT_IsSimpleChainCyclic(chain)) { /* If the chain is cyclic, then the path length constraints - * are violated, because the chain is infinitely long. + * are violated, because the chain is infinitely long. MS + * misleadingly also sets the not supported name constraint bit, + * whether or not name constraints were present. */ pathLengthConstraintViolated = TRUE; chain->TrustStatus.dwErrorStatus |= + CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT | CERT_TRUST_INVALID_BASIC_CONSTRAINTS; } /* FIXME: check valid usages */ diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c index 5752eff..772da0f 100644 --- a/dlls/crypt32/tests/chain.c +++ b/dlls/crypt32/tests/chain.c @@ -1530,7 +1530,7 @@ static ChainCheck chainCheck[] = { { CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT | CERT_TRUST_INVALID_BASIC_CONSTRAINTS | CERT_TRUST_IS_CYCLIC, 0 }, 1, simpleStatus9 }, - TODO_ERROR | TODO_INFO }, + TODO_INFO }, { { sizeof(chain10) / sizeof(chain10[0]), chain10 }, { { 0, CERT_TRUST_HAS_PREFERRED_ISSUER }, { CERT_TRUST_IS_UNTRUSTED_ROOT, 0 }, 1, simpleStatus10 }, 0 },
1
0
0
0
Juan Lang : crypt32: Microsoft fixed a bug with name constraints, so make Wine's behavior match.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 25698f8938a7c29d7ea772168b87f1e09f36099e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=25698f8938a7c29d7ea772168…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu Oct 16 16:42:46 2008 -0700 crypt32: Microsoft fixed a bug with name constraints, so make Wine's behavior match. --- dlls/crypt32/chain.c | 17 +---------------- dlls/crypt32/tests/chain.c | 6 ++---- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c index d086fe6..9365a22 100644 --- a/dlls/crypt32/chain.c +++ b/dlls/crypt32/chain.c @@ -560,14 +560,13 @@ static void CRYPT_FindMatchingNameEntry(const CERT_ALT_NAME_ENTRY *constraint, DWORD errorIfFound, DWORD errorIfNotFound) { DWORD i; - BOOL defined = FALSE, match = FALSE; + BOOL match = FALSE; for (i = 0; i < subjectName->cAltEntry; i++) { if (subjectName->rgAltEntry[i].dwAltNameChoice == constraint->dwAltNameChoice) { - defined = TRUE; switch (constraint->dwAltNameChoice) { case CERT_ALT_NAME_RFC822_NAME: @@ -595,16 +594,6 @@ static void CRYPT_FindMatchingNameEntry(const CERT_ALT_NAME_ENTRY *constraint, } } } - /* Microsoft's implementation of name constraint checking appears at odds - * with RFC 3280: - * According to MSDN, CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT is set - * when a name constraint is present, but that name form is not defined in - * the end certificate. According to RFC 3280, "if no name of the type is - * in the certificate, the name is acceptable." - * I follow Microsoft here. - */ - if (!defined) - *trustErrorStatus |= CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT; *trustErrorStatus |= match ? errorIfFound : errorIfNotFound; } @@ -645,10 +634,6 @@ static void CRYPT_CheckNameConstraints( } else { - /* See above comment on CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT. - * I match Microsoft's implementation here as well. - */ - *trustErrorStatus |= CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT; if (nameConstraints->cPermittedSubtree) *trustErrorStatus |= CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT; diff --git a/dlls/crypt32/tests/chain.c b/dlls/crypt32/tests/chain.c index bfaa802..5752eff 100644 --- a/dlls/crypt32/tests/chain.c +++ b/dlls/crypt32/tests/chain.c @@ -1352,8 +1352,7 @@ static CONST_DATA_BLOB chain5[] = { }; static const CERT_TRUST_STATUS elementStatus5[] = { { CERT_TRUST_NO_ERROR, CERT_TRUST_HAS_NAME_MATCH_ISSUER }, - { CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT | - CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT | + { CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT | CERT_TRUST_IS_UNTRUSTED_ROOT, CERT_TRUST_HAS_NAME_MATCH_ISSUER | CERT_TRUST_IS_SELF_SIGNED }, }; @@ -1512,8 +1511,7 @@ static ChainCheck chainCheck[] = { 1, simpleStatus4 }, 0 }, { { sizeof(chain5) / sizeof(chain5[0]), chain5 }, { { 0, CERT_TRUST_HAS_PREFERRED_ISSUER }, - { CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT | - CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT | + { CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT | CERT_TRUST_IS_UNTRUSTED_ROOT, 0 }, 1, simpleStatus5 }, 0 }, { { sizeof(chain6) / sizeof(chain6[0]), chain6 }, { { 0, CERT_TRUST_HAS_PREFERRED_ISSUER },
1
0
0
0
Hans Leidekker : wininet: Fix buffer size query for InternetQueryOption( INTERNET_OPTION_PROXY).
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 4615b1c0b41f66dfd6120f630cda8678b8b06265 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4615b1c0b41f66dfd6120f630…
Author: Hans Leidekker <hans(a)codeweavers.com> Date: Fri Oct 17 16:24:15 2008 +0200 wininet: Fix buffer size query for InternetQueryOption(INTERNET_OPTION_PROXY). --- dlls/wininet/internet.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 277ea23..353b156 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -546,8 +546,10 @@ static DWORD APPINFO_QueryOption(WININETHANDLEHEADER *hdr, DWORD option, void *b if (ai->lpszProxyBypass) proxyBypassBytesRequired = (lstrlenW(ai->lpszProxyBypass) + 1) * sizeof(WCHAR); if (*size < sizeof(INTERNET_PROXY_INFOW) + proxyBytesRequired + proxyBypassBytesRequired) - return ERROR_INSUFFICIENT_BUFFER; - + { + *size = sizeof(INTERNET_PROXY_INFOW) + proxyBytesRequired + proxyBypassBytesRequired; + return ERROR_INSUFFICIENT_BUFFER; + } proxy = (LPWSTR)((LPBYTE)buffer + sizeof(INTERNET_PROXY_INFOW)); proxy_bypass = (LPWSTR)((LPBYTE)buffer + sizeof(INTERNET_PROXY_INFOW) + proxyBytesRequired); @@ -577,8 +579,10 @@ static DWORD APPINFO_QueryOption(WININETHANDLEHEADER *hdr, DWORD option, void *b proxyBypassBytesRequired = WideCharToMultiByte(CP_ACP, 0, ai->lpszProxyBypass, -1, NULL, 0, NULL, NULL); if (*size < sizeof(INTERNET_PROXY_INFOA) + proxyBytesRequired + proxyBypassBytesRequired) + { + *size = sizeof(INTERNET_PROXY_INFOA) + proxyBytesRequired + proxyBypassBytesRequired; return ERROR_INSUFFICIENT_BUFFER; - + } proxy = (LPSTR)((LPBYTE)buffer + sizeof(INTERNET_PROXY_INFOA)); proxy_bypass = (LPSTR)((LPBYTE)buffer + sizeof(INTERNET_PROXY_INFOA) + proxyBytesRequired);
1
0
0
0
Rob Shearman : kernel32: Fix some Esperanto day and month names.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 1b5e84a588af1bb0130331eb7d1a7c1dd5a810f2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1b5e84a588af1bb0130331eb7…
Author: Rob Shearman <robertshearman(a)gmail.com> Date: Fri Oct 17 15:01:28 2008 +0100 kernel32: Fix some Esperanto day and month names. --- dlls/kernel32/nls/eox.nls | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/kernel32/nls/eox.nls b/dlls/kernel32/nls/eox.nls index 6a6b87f..0f5e722 100644 --- a/dlls/kernel32/nls/eox.nls +++ b/dlls/kernel32/nls/eox.nls @@ -82,7 +82,7 @@ STRINGTABLE LANGUAGE LANG_ESPERANTO, SUBLANG_DEFAULT LOCALE_SABBREVDAYNAME1 "lu" LOCALE_SABBREVDAYNAME2 "ma" LOCALE_SABBREVDAYNAME3 "me" - LOCALE_SABBREVDAYNAME4 "¼a" + LOCALE_SABBREVDAYNAME4 "ĵa" LOCALE_SABBREVDAYNAME5 "ve" LOCALE_SABBREVDAYNAME6 "sa" LOCALE_SABBREVDAYNAME7 "di" @@ -94,7 +94,7 @@ STRINGTABLE LANGUAGE LANG_ESPERANTO, SUBLANG_DEFAULT LOCALE_SABBREVMONTHNAME5 "maj" LOCALE_SABBREVMONTHNAME6 "jun" LOCALE_SABBREVMONTHNAME7 "jul" - LOCALE_SABBREVMONTHNAME8 "aýg" + LOCALE_SABBREVMONTHNAME8 "aŭg" LOCALE_SABBREVMONTHNAME9 "sep" LOCALE_SABBREVMONTHNAME10 "okt" LOCALE_SABBREVMONTHNAME11 "nov" @@ -106,10 +106,10 @@ STRINGTABLE LANGUAGE LANG_ESPERANTO, SUBLANG_DEFAULT LOCALE_SDAYNAME1 "lundo" LOCALE_SDAYNAME2 "mardo" LOCALE_SDAYNAME3 "merkredo" - LOCALE_SDAYNAME4 "¼aýdo" + LOCALE_SDAYNAME4 "ĵaŭdo" LOCALE_SDAYNAME5 "vendredo" LOCALE_SDAYNAME6 "sabato" - LOCALE_SDAYNAME7 "dimanæo" + LOCALE_SDAYNAME7 "dimanĉo" LOCALE_SDECIMAL "," LOCALE_SENGCOUNTRY "" LOCALE_SENGCURRNAME "Euro" @@ -130,7 +130,7 @@ STRINGTABLE LANGUAGE LANG_ESPERANTO, SUBLANG_DEFAULT LOCALE_SMONTHNAME5 "majo" LOCALE_SMONTHNAME6 "junio" LOCALE_SMONTHNAME7 "julio" - LOCALE_SMONTHNAME8 "aýgusto" + LOCALE_SMONTHNAME8 "aŭgusto" LOCALE_SMONTHNAME9 "septembro" LOCALE_SMONTHNAME10 "oktobro" LOCALE_SMONTHNAME11 "novembro"
1
0
0
0
Henri Verbeet : dxgi: Add the IDXGIAdapter interface.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 21c7d89ce6fe35a56df0710852e330949affaec5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=21c7d89ce6fe35a56df071085…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 17 15:09:45 2008 +0200 dxgi: Add the IDXGIAdapter interface. --- include/dxgi.idl | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/include/dxgi.idl b/include/dxgi.idl index abfd299..8cba615 100644 --- a/include/dxgi.idl +++ b/include/dxgi.idl @@ -20,6 +20,10 @@ import "dxgitype.idl"; cpp_quote("#if 0") typedef HANDLE HMONITOR; +typedef struct _LUID { + DWORD LowPart; + LONG HighPart; +} LUID, *PLUID; cpp_quote("#endif") typedef UINT DXGI_USAGE; @@ -62,6 +66,18 @@ typedef struct DXGI_FRAME_STATISTICS { LARGE_INTEGER SyncGPUTime; } DXGI_FRAME_STATISTICS; +typedef struct DXGI_ADAPTER_DESC { + WCHAR Description[128]; + UINT VendorId; + UINT DeviceId; + UINT SubSysId; + UINT Revision; + SIZE_T DedicatedVideoMemory; + SIZE_T DedicatedSystemMemory; + SIZE_T SharedSystemMemory; + LUID AdapterLuid; +} DXGI_ADAPTER_DESC; + typedef struct DXGI_SWAP_CHAIN_DESC { DXGI_MODE_DESC BufferDesc; DXGI_SAMPLE_DESC SampleDesc; @@ -183,6 +199,26 @@ interface IDXGIOutput : IDXGIObject [ object, local, + uuid(2411e7e1-12ac-4ccf-bd14-9798e8534dc0) +] +interface IDXGIAdapter : IDXGIObject +{ + HRESULT EnumOutputs( + [in] UINT output_idx, + [in, out] IDXGIOutput **output + ); + HRESULT GetDesc( + [out] DXGI_ADAPTER_DESC *desc + ); + HRESULT CheckInterfaceSupport( + [in] REFGUID guid, + [out] LARGE_INTEGER umd_version + ); +} + +[ + object, + local, uuid(310d36a0-d2e7-4c0a-aa04-6a9d23b8886a) ] interface IDXGISwapChain : IDXGIDeviceSubObject
1
0
0
0
Henri Verbeet : dxgi: Add the IDXGISwapChain interface.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 94bd5c65969897bd648f518c1c3eb98a841bc2a7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=94bd5c65969897bd648f518c1…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 17 15:09:45 2008 +0200 dxgi: Add the IDXGISwapChain interface. --- include/dxgi.idl | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/include/dxgi.idl b/include/dxgi.idl index f1925b6..abfd299 100644 --- a/include/dxgi.idl +++ b/include/dxgi.idl @@ -22,6 +22,18 @@ cpp_quote("#if 0") typedef HANDLE HMONITOR; cpp_quote("#endif") +typedef UINT DXGI_USAGE; +const DXGI_USAGE DXGI_USAGE_SHADER_INPUT = 0x10L; +const DXGI_USAGE DXGI_USAGE_RENDER_TARGET_OUTPUT = 0x20L; +const DXGI_USAGE DXGI_USAGE_BACK_BUFFER = 0x40L; +const DXGI_USAGE DXGI_USAGE_SHARED = 0x80L; +const DXGI_USAGE DXGI_USAGE_READ_ONLY = 0x100L; + +typedef enum DXGI_SWAP_EFFECT { + DXGI_SWAP_EFFECT_DISCARD = 0, + DXGI_SWAP_EFFECT_SEQUENTIAL = 1, +} DXGI_SWAP_EFFECT; + typedef struct DXGI_SURFACE_DESC { UINT Width; UINT Height; @@ -50,6 +62,17 @@ typedef struct DXGI_FRAME_STATISTICS { LARGE_INTEGER SyncGPUTime; } DXGI_FRAME_STATISTICS; +typedef struct DXGI_SWAP_CHAIN_DESC { + DXGI_MODE_DESC BufferDesc; + DXGI_SAMPLE_DESC SampleDesc; + DXGI_USAGE BufferUsage; + UINT BufferCount; + HWND OutputWindow; + BOOL Windowed; + DXGI_SWAP_EFFECT SwapEffect; + UINT Flags; +} DXGI_SWAP_CHAIN_DESC; + [ object, local, @@ -156,3 +179,51 @@ interface IDXGIOutput : IDXGIObject [out] DXGI_FRAME_STATISTICS *stats ); } + +[ + object, + local, + uuid(310d36a0-d2e7-4c0a-aa04-6a9d23b8886a) +] +interface IDXGISwapChain : IDXGIDeviceSubObject +{ + HRESULT Present( + [in] UINT sync_interval, + [in] UINT flags + ); + HRESULT GetBuffer( + [in] UINT buffer_idx, + [in] REFIID riid, + [in, out] void **surface + ); + HRESULT SetFullscreenState( + [in] BOOL fullscreen, + [in] IDXGIOutput *target + ); + HRESULT GetFullscreenState( + [out] BOOL *fullscreen, + [out] IDXGIOutput **target + ); + HRESULT GetDesc( + [out] DXGI_SWAP_CHAIN_DESC *desc + ); + HRESULT ResizeBuffers( + [in] UINT buffer_count, + [in] UINT width, + [in] UINT height, + [in] DXGI_FORMAT format, + [in] UINT flags + ); + HRESULT ResizeTarget( + [in] const DXGI_MODE_DESC target_mode_desc + ); + HRESULT GetContainingOutput( + [out] IDXGIOutput **output + ); + HRESULT GetFrameStatistics( + [out] DXGI_FRAME_STATISTICS *stats + ); + HRESULT GetLastPresentCount( + [out] UINT *last_present_count + ); +}
1
0
0
0
Henri Verbeet : dxgi: Add the IDXGIOutput interface.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 2d1da818c5439b710112a49399b87c5c7128b93c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2d1da818c5439b710112a4939…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 17 15:09:45 2008 +0200 dxgi: Add the IDXGIOutput interface. --- include/dxgi.idl | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ include/dxgitype.idl | 55 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+), 0 deletions(-) diff --git a/include/dxgi.idl b/include/dxgi.idl index 7c7a3e9..f1925b6 100644 --- a/include/dxgi.idl +++ b/include/dxgi.idl @@ -18,6 +18,10 @@ import "dxgitype.idl"; +cpp_quote("#if 0") +typedef HANDLE HMONITOR; +cpp_quote("#endif") + typedef struct DXGI_SURFACE_DESC { UINT Width; UINT Height; @@ -30,6 +34,22 @@ typedef struct DXGI_MAPPED_RECT { BYTE *pBits; } DXGI_MAPPED_RECT; +typedef struct DXGI_OUTPUT_DESC { + WCHAR DeviceName[32]; + RECT DesktopCoordinates; + BOOL AttachedToDesktop; + DXGI_MODE_ROTATION Rotation; + HMONITOR Monitor; +} DXGI_OUTPUT_DESC; + +typedef struct DXGI_FRAME_STATISTICS { + UINT PresentCount; + UINT PresentRefreshCount; + UINT SyncRefreshCount; + LARGE_INTEGER SyncQPCTime; + LARGE_INTEGER SyncGPUTime; +} DXGI_FRAME_STATISTICS; + [ object, local, @@ -87,3 +107,52 @@ interface IDXGISurface : IDXGIDeviceSubObject HRESULT Unmap( ); } + +[ + object, + local, + uuid(ae02eedb-c735-4690-8d52-5a8dc20213aa) +] +interface IDXGIOutput : IDXGIObject +{ + HRESULT GetDesc( + [out] DXGI_OUTPUT_DESC *desc + ); + HRESULT GetDisplayModeList( + [in] DXGI_FORMAT format, + [in] UINT flags, + [in, out] UINT *mode_count, + [out] DXGI_MODE_DESC *desc + ); + HRESULT FindClosestMatchingMode( + [in] const DXGI_MODE_DESC *mode, + [out] DXGI_MODE_DESC *closest_match, + [in] IUnknown *device + ); + HRESULT WaitForVBlank( + ); + HRESULT TakeOwnership( + [in] IUnknown *device, + [in] BOOL exclusive + ); + void ReleaseOwnership( + ); + HRESULT GetGammaControlCapabilities( + [out] DXGI_GAMMA_CONTROL_CAPABILITIES *gamma_caps + ); + HRESULT SetGammaControl( + [in] const DXGI_GAMMA_CONTROL *gamma_control + ); + HRESULT GetGammaControl( + [out] DXGI_GAMMA_CONTROL *gamma_control + ); + HRESULT SetDisplaySurface( + [in] IDXGISurface *surface + ); + HRESULT GetDisplaySurfaceData( + [in] IDXGISurface *surface + ); + HRESULT GetFrameStatistics( + [out] DXGI_FRAME_STATISTICS *stats + ); +} diff --git a/include/dxgitype.idl b/include/dxgitype.idl index 37bdfaa..2bd961d 100644 --- a/include/dxgitype.idl +++ b/include/dxgitype.idl @@ -115,3 +115,58 @@ typedef enum DXGI_FORMAT { DXGI_FORMAT_B8G8R8X8_UNORM = 88, DXGI_FORMAT_FORCE_UINT = 0xffffffff } DXGI_FORMAT; + +typedef enum DXGI_MODE_ROTATION { + DXGI_MODE_ROTATION_UNSPECIFIED = 0, + DXGI_MODE_ROTATION_IDENTITY = 1, + DXGI_MODE_ROTATION_ROTATE90 = 2, + DXGI_MODE_ROTATION_ROTATE180 = 3, + DXGI_MODE_ROTATION_ROTATE270 = 4, +} DXGI_MODE_ROTATION; + +typedef enum DXGI_MODE_SCANLINE_ORDER { + DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0, + DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE = 1, + DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 2, + DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 3, +} DXGI_MODE_SCANLINE_ORDER; + +typedef enum DXGI_MODE_SCALING { + DXGI_MODE_SCALING_UNSPECIFIED = 0, + DXGI_MODE_SCALING_CENTERED = 1, + DXGI_MODE_SCALING_STRETCHED = 2, +} DXGI_MODE_SCALING; + +typedef struct DXGI_RATIONAL { + UINT Numerator; + UINT Denominator; +} DXGI_RATIONAL; + +typedef struct DXGI_MODE_DESC { + UINT Width; + UINT Height; + DXGI_RATIONAL RefreshRate; + DXGI_FORMAT Format; + DXGI_MODE_SCANLINE_ORDER ScanlineOrdering; + DXGI_MODE_SCALING Scaling; +} DXGI_MODE_DESC; + +typedef struct DXGI_GAMMA_CONTROL_CAPABILITIES { + BOOL ScaleAndOffsetSupported; + float MaxConvertedValue; + float MinConvertedValue; + UINT NumGammaControlPoints; + float ControlPointPositions[1025]; +} DXGI_GAMMA_CONTROL_CAPABILITIES; + +typedef struct DXGI_RGB { + float Red; + float Green; + float Blue; +} DXGI_RGB; + +typedef struct DXGI_GAMMA_CONTROL { + DXGI_RGB Scale; + DXGI_RGB Offset; + DXGI_RGB GammaCurve[1025]; +} DXGI_GAMMA_CONTROL;
1
0
0
0
Henri Verbeet : dxgi: Add the IDXGISurface interface.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 9cdbffcce4c6e5c5d374dca642941adbc4d6978c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9cdbffcce4c6e5c5d374dca64…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 17 15:09:45 2008 +0200 dxgi: Add the IDXGISurface interface. --- include/dxgi.idl | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/include/dxgi.idl b/include/dxgi.idl index e82c5be..7c7a3e9 100644 --- a/include/dxgi.idl +++ b/include/dxgi.idl @@ -18,6 +18,18 @@ import "dxgitype.idl"; +typedef struct DXGI_SURFACE_DESC { + UINT Width; + UINT Height; + DXGI_FORMAT Format; + DXGI_SAMPLE_DESC SampleDesc; +} DXGI_SURFACE_DESC; + +typedef struct DXGI_MAPPED_RECT { + INT Pitch; + BYTE *pBits; +} DXGI_MAPPED_RECT; + [ object, local, @@ -57,3 +69,21 @@ interface IDXGIDeviceSubObject : IDXGIObject [out] void **device ); } + +[ + object, + local, + uuid(cafcb56c-6ac3-4889-bf47-9e23bbd260ec) +] +interface IDXGISurface : IDXGIDeviceSubObject +{ + HRESULT GetDesc( + [out] DXGI_SURFACE_DESC *desc + ); + HRESULT Map( + [out] DXGI_MAPPED_RECT *mapped_rect, + [in] UINT flags + ); + HRESULT Unmap( + ); +}
1
0
0
0
Alexandre Julliard : mountmgr: Store the device name in the mount point structure.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: a304358e7b292995f6c8e417682b5eb1064b105e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a304358e7b292995f6c8e4176…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 17 20:01:23 2008 +0200 mountmgr: Store the device name in the mount point structure. --- dlls/mountmgr.sys/mountmgr.c | 46 +++++++++++++++++++++--------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c index e3b02a0..569f131 100644 --- a/dlls/mountmgr.sys/mountmgr.c +++ b/dlls/mountmgr.sys/mountmgr.c @@ -49,7 +49,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mountmgr); /* extra info for disk devices, stored in DeviceExtension */ struct disk_device_info { - UNICODE_STRING name; /* device name */ STORAGE_DEVICE_NUMBER devnum; /* device number info */ }; @@ -57,6 +56,7 @@ struct mount_point { struct list entry; /* entry in mount points list */ DEVICE_OBJECT *device; /* disk device */ + UNICODE_STRING name; /* device name */ UNICODE_STRING link; /* DOS device symlink */ void *id; /* device unique id */ unsigned int id_len; @@ -65,11 +65,6 @@ struct mount_point static struct list mount_points_list = LIST_INIT(mount_points_list); static HKEY mount_key; -static inline UNICODE_STRING *get_device_name( DEVICE_OBJECT *dev ) -{ - return &((struct disk_device_info *)dev->DeviceExtension)->name; -} - /* read a Unix symlink; returned buffer must be freed by caller */ static char *read_symlink( const char *path ) { @@ -99,7 +94,8 @@ static char *read_symlink( const char *path ) } } -static NTSTATUS create_disk_device( DRIVER_OBJECT *driver, DWORD type, DEVICE_OBJECT **dev_obj ) +static NTSTATUS create_disk_device( DRIVER_OBJECT *driver, DWORD type, DEVICE_OBJECT **dev_obj, + UNICODE_STRING *device_name ) { static const WCHAR harddiskW[] = {'\\','D','e','v','i','c','e', '\\','H','a','r','d','d','i','s','k','V','o','l','u','m','e','%','u',0}; @@ -139,7 +135,7 @@ static NTSTATUS create_disk_device( DRIVER_OBJECT *driver, DWORD type, DEVICE_OB if (!status) { info = (*dev_obj)->DeviceExtension; - info->name = name; + *device_name = name; switch(type) { case DRIVE_REMOVABLE: @@ -186,13 +182,19 @@ static struct mount_point *add_mount_point( DEVICE_OBJECT *device, UNICODE_STRIN { struct mount_point *mount; WCHAR *str; - UINT len = (strlenW(link) + 1) * sizeof(WCHAR); + UINT len = (strlenW(link) + 1) * sizeof(WCHAR) + device_name->Length + sizeof(WCHAR); if (!(mount = RtlAllocateHeap( GetProcessHeap(), 0, sizeof(*mount) + len ))) return NULL; str = (WCHAR *)(mount + 1); strcpyW( str, link ); RtlInitUnicodeString( &mount->link, str ); + str += strlenW(str) + 1; + memcpy( str, device_name->Buffer, device_name->Length ); + str[device_name->Length / sizeof(WCHAR)] = 0; + mount->name.Buffer = str; + mount->name.Length = device_name->Length; + mount->name.MaximumLength = device_name->Length + sizeof(WCHAR); mount->device = device; mount->id = NULL; list_add_tail( &mount_points_list, &mount->entry ); @@ -201,7 +203,7 @@ static struct mount_point *add_mount_point( DEVICE_OBJECT *device, UNICODE_STRIN set_mount_point_id( mount, id, id_len ); TRACE( "created %s id %s for %s\n", debugstr_w(mount->link.Buffer), - debugstr_a(mount->id), debugstr_w(device_name->Buffer) ); + debugstr_a(mount->id), debugstr_w(mount->name.Buffer) ); return mount; } @@ -248,9 +250,8 @@ static BOOL matching_mount_point( const struct mount_point *mount, const MOUNTMG if (spec->DeviceNameOffset) { const WCHAR *name = (const WCHAR *)((const char *)spec + spec->DeviceNameOffset); - const UNICODE_STRING *dev_name = get_device_name( mount->device ); - if (spec->DeviceNameLength != dev_name->Length) return FALSE; - if (memicmpW( name, dev_name->Buffer, dev_name->Length/sizeof(WCHAR))) + if (spec->DeviceNameLength != mount->name.Length) return FALSE; + if (memicmpW( name, mount->name.Buffer, mount->name.Length/sizeof(WCHAR))) return FALSE; } if (spec->UniqueIdOffset) @@ -269,7 +270,6 @@ static NTSTATUS query_mount_points( const void *in_buff, SIZE_T insize, UINT count, pos, size; const MOUNTMGR_MOUNT_POINT *input = in_buff; MOUNTMGR_MOUNT_POINTS *info = out_buff; - UNICODE_STRING *dev_name; struct mount_point *mount; /* sanity checks */ @@ -285,7 +285,7 @@ static NTSTATUS query_mount_points( const void *in_buff, SIZE_T insize, LIST_FOR_EACH_ENTRY( mount, &mount_points_list, struct mount_point, entry ) { if (!matching_mount_point( mount, input )) continue; - size += get_device_name(mount->device)->Length; + size += mount->name.Length; size += mount->link.Length; size += mount->id_len; size = (size + sizeof(WCHAR) - 1) & ~(sizeof(WCHAR) - 1); @@ -307,11 +307,10 @@ static NTSTATUS query_mount_points( const void *in_buff, SIZE_T insize, { if (!matching_mount_point( mount, input )) continue; - dev_name = get_device_name( mount->device ); info->MountPoints[count].DeviceNameOffset = pos; - info->MountPoints[count].DeviceNameLength = dev_name->Length; - memcpy( (char *)out_buff + pos, dev_name->Buffer, dev_name->Length ); - pos += dev_name->Length; + info->MountPoints[count].DeviceNameLength = mount->name.Length; + memcpy( (char *)out_buff + pos, mount->name.Buffer, mount->name.Length ); + pos += mount->name.Length; info->MountPoints[count].SymbolicLinkNameOffset = pos; info->MountPoints[count].SymbolicLinkNameLength = mount->link.Length; @@ -414,6 +413,7 @@ static void create_drive_mount_points( DRIVER_OBJECT *driver ) char *buffer, *p, *link; unsigned int i; DEVICE_OBJECT *device; + UNICODE_STRING device_name; if ((buffer = RtlAllocateHeap( GetProcessHeap(), 0, strlen(config_dir) + sizeof("/dosdevices/a:") ))) @@ -426,10 +426,11 @@ static void create_drive_mount_points( DRIVER_OBJECT *driver ) { *p = 'a' + i; if (!(link = read_symlink( buffer ))) continue; - if (!create_disk_device( driver, DRIVE_FIXED, &device )) + if (!create_disk_device( driver, DRIVE_FIXED, &device, &device_name )) { - add_dosdev_mount_point( device, get_device_name(device), i, link, strlen(link) + 1 ); - add_volume_mount_point( device, get_device_name(device), i, link, strlen(link) + 1 ); + add_dosdev_mount_point( device, &device_name, i, link, strlen(link) + 1 ); + add_volume_mount_point( device, &device_name, i, link, strlen(link) + 1 ); + RtlFreeUnicodeString( &device_name ); } RtlFreeHeap( GetProcessHeap(), 0, link ); } @@ -466,7 +467,6 @@ static NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STR return status; } info = device->DeviceExtension; - info->name = nameW; info->devnum.DeviceType = FILE_DEVICE_DISK; info->devnum.DeviceNumber = 0; info->devnum.PartitionNumber = 0;
1
0
0
0
Alexandre Julliard : mountmgr: Store mount points as a list instead of an array.
by Alexandre Julliard
18 Oct '08
18 Oct '08
Module: wine Branch: master Commit: 1680ba67efdea211fdcdc45aa6a173a893c9ab5c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1680ba67efdea211fdcdc45aa…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 17 20:09:31 2008 +0200 mountmgr: Store mount points as a list instead of an array. --- dlls/mountmgr.sys/mountmgr.c | 155 ++++++++++++++++++++--------------------- 1 files changed, 76 insertions(+), 79 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=1680ba67efdea211fdcdc…
1
0
0
0
← Newer
1
...
43
44
45
46
47
48
49
...
122
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
113
114
115
116
117
118
119
120
121
122
Results per page:
10
25
50
100
200