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 2010
----- 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
1174 discussions
Start a n
N
ew thread
Juan Lang : winhttp: Honor more SECURITY_FLAG_IGNORE flags.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 756c17165990351bc43446bdf3f8d5807a0666aa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=756c17165990351bc43446bdf…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Sep 29 08:36:28 2010 -0700 winhttp: Honor more SECURITY_FLAG_IGNORE flags. --- dlls/winhttp/net.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c index a85eecd..398c0b7 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -276,6 +276,11 @@ static DWORD netconn_verify_cert( PCCERT_CONTEXT cert, HCERTSTORE store, { if (chain->TrustStatus.dwErrorStatus) { + static const DWORD supportedErrors = + CERT_TRUST_IS_NOT_TIME_VALID | + CERT_TRUST_IS_UNTRUSTED_ROOT | + CERT_TRUST_IS_NOT_VALID_FOR_USAGE; + if (chain->TrustStatus.dwErrorStatus & CERT_TRUST_IS_NOT_TIME_VALID) { if (!(security_flags & SECURITY_FLAG_IGNORE_CERT_DATE_INVALID)) @@ -283,7 +288,10 @@ static DWORD netconn_verify_cert( PCCERT_CONTEXT cert, HCERTSTORE store, } else if (chain->TrustStatus.dwErrorStatus & CERT_TRUST_IS_UNTRUSTED_ROOT) - err = ERROR_WINHTTP_SECURE_INVALID_CA; + { + if (!(security_flags & SECURITY_FLAG_IGNORE_UNKNOWN_CA)) + err = ERROR_WINHTTP_SECURE_INVALID_CA; + } else if ((chain->TrustStatus.dwErrorStatus & CERT_TRUST_IS_OFFLINE_REVOCATION) || (chain->TrustStatus.dwErrorStatus & @@ -297,7 +305,7 @@ static DWORD netconn_verify_cert( PCCERT_CONTEXT cert, HCERTSTORE store, if (!(security_flags & SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE)) err = ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE; } - else + else if (chain->TrustStatus.dwErrorStatus & ~supportedErrors) err = ERROR_WINHTTP_SECURE_INVALID_CERT; } else
1
0
0
0
Juan Lang : winhttp: Don't make use of OpenSSL's security checks, as crypt32 also verifies certificate chain.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 5566d424f1e3e7298adcb2ea4941964e27b04627 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5566d424f1e3e7298adcb2ea4…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Sep 29 08:18:39 2010 -0700 winhttp: Don't make use of OpenSSL's security checks, as crypt32 also verifies certificate chain. --- dlls/winhttp/net.c | 64 ++++++++++++++++++++++++--------------------------- 1 files changed, 30 insertions(+), 34 deletions(-) diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c index 92996a7..a85eecd 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -343,53 +343,49 @@ static int netconn_secure_verify( int preverify_ok, X509_STORE_CTX *ctx ) WCHAR *server; BOOL ret = FALSE; netconn_t *conn; + HCERTSTORE store = CertOpenStore( CERT_STORE_PROV_MEMORY, 0, 0, + CERT_STORE_CREATE_NEW_FLAG, NULL ); ssl = pX509_STORE_CTX_get_ex_data( ctx, pSSL_get_ex_data_X509_STORE_CTX_idx() ); server = pSSL_get_ex_data( ssl, hostname_idx ); conn = pSSL_get_ex_data( ssl, conn_idx ); - if (preverify_ok) + if (store) { - HCERTSTORE store = CertOpenStore( CERT_STORE_PROV_MEMORY, 0, 0, - CERT_STORE_CREATE_NEW_FLAG, NULL ); + X509 *cert; + int i; + PCCERT_CONTEXT endCert = NULL; - if (store) + ret = TRUE; + for (i = 0; ret && i < psk_num((struct stack_st *)ctx->chain); i++) { - X509 *cert; - int i; - PCCERT_CONTEXT endCert = NULL; + PCCERT_CONTEXT context; - ret = TRUE; - for (i = 0; ret && i < psk_num((struct stack_st *)ctx->chain); i++) + cert = (X509 *)psk_value((struct stack_st *)ctx->chain, i); + if ((context = X509_to_cert_context( cert ))) { - PCCERT_CONTEXT context; - - cert = (X509 *)psk_value((struct stack_st *)ctx->chain, i); - if ((context = X509_to_cert_context( cert ))) - { - if (i == 0) - ret = CertAddCertificateContextToStore( store, context, - CERT_STORE_ADD_ALWAYS, &endCert ); - else - ret = CertAddCertificateContextToStore( store, context, - CERT_STORE_ADD_ALWAYS, NULL ); - CertFreeCertificateContext( context ); - } + if (i == 0) + ret = CertAddCertificateContextToStore( store, context, + CERT_STORE_ADD_ALWAYS, &endCert ); + else + ret = CertAddCertificateContextToStore( store, context, + CERT_STORE_ADD_ALWAYS, NULL ); + CertFreeCertificateContext( context ); } - if (!endCert) ret = FALSE; - if (ret) - { - DWORD_PTR err = netconn_verify_cert( endCert, store, server, - conn->security_flags ); + } + if (!endCert) ret = FALSE; + if (ret) + { + DWORD_PTR err = netconn_verify_cert( endCert, store, server, + conn->security_flags ); - if (err) - { - pSSL_set_ex_data( ssl, error_idx, (void *)err ); - ret = FALSE; - } + if (err) + { + pSSL_set_ex_data( ssl, error_idx, (void *)err ); + ret = FALSE; } - CertFreeCertificateContext( endCert ); - CertCloseStore( store, 0 ); } + CertFreeCertificateContext( endCert ); + CertCloseStore( store, 0 ); } return ret; }
1
0
0
0
Juan Lang : winhttp: Remove unused function pointer.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 10ef345307d43e17e7fad5b6ca4ad427567ab251 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=10ef345307d43e17e7fad5b6c…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Wed Sep 29 08:14:43 2010 -0700 winhttp: Remove unused function pointer. --- dlls/winhttp/net.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c index 573f108..92996a7 100644 --- a/dlls/winhttp/net.c +++ b/dlls/winhttp/net.c @@ -121,7 +121,6 @@ MAKE_FUNCPTR( SSL_get_ex_new_index ); MAKE_FUNCPTR( SSL_get_ex_data ); MAKE_FUNCPTR( SSL_set_ex_data ); MAKE_FUNCPTR( SSL_get_ex_data_X509_STORE_CTX_idx ); -MAKE_FUNCPTR( SSL_get_verify_result ); MAKE_FUNCPTR( SSL_get_peer_certificate ); MAKE_FUNCPTR( SSL_CTX_set_default_verify_paths ); MAKE_FUNCPTR( SSL_CTX_set_verify ); @@ -451,7 +450,6 @@ BOOL netconn_init( netconn_t *conn, BOOL secure ) LOAD_FUNCPTR( SSL_get_ex_data ); LOAD_FUNCPTR( SSL_set_ex_data ); LOAD_FUNCPTR( SSL_get_ex_data_X509_STORE_CTX_idx ); - LOAD_FUNCPTR( SSL_get_verify_result ); LOAD_FUNCPTR( SSL_get_peer_certificate ); LOAD_FUNCPTR( SSL_CTX_set_default_verify_paths ); LOAD_FUNCPTR( SSL_CTX_set_verify );
1
0
0
0
Alexandre Julliard : Make some variable declarations extern.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 7afdf5d9204fdccb74f547ca8588b76100e1738a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7afdf5d9204fdccb74f547ca8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:42:22 2010 +0200 Make some variable declarations extern. --- dlls/msxml3/msxml_private.h | 2 +- dlls/rpcrt4/cpsf.h | 4 ++-- dlls/wined3d/wined3d_private.h | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/msxml3/msxml_private.h b/dlls/msxml3/msxml_private.h index a1b3b9d..6d97e96 100644 --- a/dlls/msxml3/msxml_private.h +++ b/dlls/msxml3/msxml_private.h @@ -223,7 +223,7 @@ static inline HRESULT return_null_ptr(void **p) #endif -void* libxslt_handle; +extern void* libxslt_handle; #ifdef SONAME_LIBXSLT # ifdef HAVE_LIBXSLT_PATTERN_H # include <libxslt/pattern.h> diff --git a/dlls/rpcrt4/cpsf.h b/dlls/rpcrt4/cpsf.h index 9cc046f..e8f1a2d 100644 --- a/dlls/rpcrt4/cpsf.h +++ b/dlls/rpcrt4/cpsf.h @@ -35,8 +35,8 @@ HRESULT CStdStubBuffer_Delegating_Construct(REFIID riid, LPUNKNOWN pUnkServer, P const MIDL_SERVER_INFO *CStdStubBuffer_GetServerInfo(IRpcStubBuffer *iface); -const IRpcStubBufferVtbl CStdStubBuffer_Vtbl; -const IRpcStubBufferVtbl CStdStubBuffer_Delegating_Vtbl; +extern const IRpcStubBufferVtbl CStdStubBuffer_Vtbl; +extern const IRpcStubBufferVtbl CStdStubBuffer_Delegating_Vtbl; BOOL fill_delegated_proxy_table(IUnknownVtbl *vtbl, DWORD num); HRESULT create_proxy(REFIID iid, IUnknown *pUnkOuter, IRpcProxyBuffer **pproxy, void **ppv); diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 1ab89c5..33bb437 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -157,11 +157,11 @@ struct min_lookup GLenum mip[WINED3DTEXF_LINEAR + 1]; }; -const struct min_lookup minMipLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; -const struct min_lookup minMipLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; -const struct min_lookup minMipLookup_noMip[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; -const GLenum magLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; -const GLenum magLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; +extern const struct min_lookup minMipLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; +extern const struct min_lookup minMipLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; +extern const struct min_lookup minMipLookup_noMip[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; +extern const GLenum magLookup[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; +extern const GLenum magLookup_noFilter[WINED3DTEXF_LINEAR + 1] DECLSPEC_HIDDEN; static inline GLenum wined3d_gl_mag_filter(const GLenum mag_lookup[], WINED3DTEXTUREFILTERTYPE mag_filter) { @@ -2576,7 +2576,7 @@ struct IWineD3DSwapChainImpl HWND device_window; }; -const IWineD3DSwapChainVtbl IWineGDISwapChain_Vtbl DECLSPEC_HIDDEN; +extern const IWineD3DSwapChainVtbl IWineGDISwapChain_Vtbl DECLSPEC_HIDDEN; void x11_copy_to_screen(IWineD3DSwapChainImpl *This, const RECT *rc) DECLSPEC_HIDDEN; HRESULT WINAPI IWineD3DBaseSwapChainImpl_QueryInterface(IWineD3DSwapChain *iface,
1
0
0
0
Alexandre Julliard : tests: Make some variables static.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 730f01801fbaae9cacbbc13be3c4dab3de7b1c1e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=730f01801fbaae9cacbbc13be…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:41:42 2010 +0200 tests: Make some variables static. --- dlls/advpack/tests/files.c | 4 ++-- dlls/amstream/tests/amstream.c | 6 +++--- dlls/comdlg32/tests/filedlg.c | 2 +- dlls/cryptnet/tests/cryptnet.c | 2 +- dlls/d3d8/tests/device.c | 2 +- dlls/d3drm/tests/d3drm.c | 6 +++--- dlls/ddraw/tests/visual.c | 24 ++++++++++++------------ dlls/dmime/tests/performance.c | 2 +- dlls/explorerframe/tests/nstc.c | 2 +- dlls/gdi32/tests/font.c | 20 ++++++++++---------- dlls/mscms/tests/profile.c | 4 ++-- dlls/msvcr90/tests/msvcr90.c | 2 +- dlls/msvcrt/tests/string.c | 2 +- dlls/msxml3/tests/domdoc.c | 4 ++-- dlls/oledb32/tests/convert.c | 2 +- dlls/opengl32/tests/opengl.c | 2 +- dlls/quartz/tests/filtergraph.c | 2 +- dlls/rpcrt4/tests/rpc_async.c | 4 ++-- dlls/shell32/tests/shlfolder.c | 2 +- dlls/ws2_32/tests/sock.c | 2 +- dlls/xmllite/tests/reader.c | 4 ++-- 21 files changed, 50 insertions(+), 50 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=730f01801fbaae9cacbbc…
1
0
0
0
Alexandre Julliard : riched20/tests: Make some variables static.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 95c1bd4da9ca94f52fe4eef7d17608a7c72bc243 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=95c1bd4da9ca94f52fe4eef7d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:40:29 2010 +0200 riched20/tests: Make some variables static. --- dlls/riched20/tests/editor.c | 12 ++++++------ dlls/riched32/tests/editor.c | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 3422536..efd2023 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -155,7 +155,7 @@ struct find_s { }; -struct find_s find_tests[] = { +static struct find_s find_tests[] = { /* Find in empty text */ {0, -1, "foo", FR_DOWN, -1}, {0, -1, "foo", 0, -1}, @@ -164,7 +164,7 @@ struct find_s find_tests[] = { {5, 20, "foo", FR_DOWN, -1} }; -struct find_s find_tests2[] = { +static struct find_s find_tests2[] = { /* No-result find */ {0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1}, {5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1}, @@ -2446,10 +2446,10 @@ static void test_EM_SCROLL(void) DestroyWindow(hwndRichEdit); } -unsigned int recursionLevel = 0; -unsigned int WM_SIZE_recursionLevel = 0; -BOOL bailedOutOfRecursion = FALSE; -LRESULT (WINAPI *richeditProc)(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); +static unsigned int recursionLevel = 0; +static unsigned int WM_SIZE_recursionLevel = 0; +static BOOL bailedOutOfRecursion = FALSE; +static LRESULT (WINAPI *richeditProc)(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); static LRESULT WINAPI RicheditStupidOverrideProcA(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { diff --git a/dlls/riched32/tests/editor.c b/dlls/riched32/tests/editor.c index 0fc913c..6b1f721 100644 --- a/dlls/riched32/tests/editor.c +++ b/dlls/riched32/tests/editor.c @@ -566,7 +566,7 @@ struct find_s { }; -struct find_s find_tests[] = { +static struct find_s find_tests[] = { /* Find in empty text */ {0, -1, "foo", FR_DOWN, -1}, {0, -1, "foo", 0, -1}, @@ -575,7 +575,7 @@ struct find_s find_tests[] = { {5, 20, "foo", FR_DOWN, -1} }; -struct find_s find_tests2[] = { +static struct find_s find_tests2[] = { /* No-result find */ {0, -1, "foo", FR_DOWN | FR_MATCHCASE, -1}, {5, 20, "WINE", FR_DOWN | FR_MATCHCASE, -1}, @@ -642,7 +642,7 @@ struct find_s find_tests2[] = { {4, -1, "INEW", 0, 10}, }; -struct find_s find_tests3[] = { +static struct find_s find_tests3[] = { /* Searching for end of line characters */ {0, -1, "t\r\r\ns", FR_DOWN | FR_MATCHCASE, 4}, {6, -1, "\r\n", FR_DOWN | FR_MATCHCASE, 6},
1
0
0
0
Alexandre Julliard : d3dxof/tests: Make some variables static.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 05e24f39c391fce600fd83e4b79c03d332944ea0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05e24f39c391fce600fd83e4b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:39:31 2010 +0200 d3dxof/tests: Make some variables static. --- dlls/d3dxof/tests/d3dxof.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlls/d3dxof/tests/d3dxof.c b/dlls/d3dxof/tests/d3dxof.c index 89dfe7f..a3fc070 100644 --- a/dlls/d3dxof/tests/d3dxof.c +++ b/dlls/d3dxof/tests/d3dxof.c @@ -36,7 +36,7 @@ static inline void debugstr_guid( char* buf, CONST GUID *id ) static HMODULE hd3dxof; static HRESULT (WINAPI *pDirectXFileCreate)(LPDIRECTXFILE*); -char template[] = +static char template[] = "xof 0302txt 0064\n" "template Header\n" "{\n" @@ -47,7 +47,7 @@ char template[] = "}\n"; /* Same version as above compressed with mszip */ -char compressed_template[] = +static char compressed_template[] = "xof 0302tzip0064\x71\x00\x00\x00\x61\x00\x5a\x00" "\x43\x4B\x2B\x49\xCD\x2D\xC8\x49\x2C\x49\x55\xF0\x48\x4D\x4C\x49" "\x2D\xE2\xAA\xE6\xB2\x31\x76\xB1\x30\x72\x74\x32\x31\xD6\x35\x33" @@ -56,7 +56,7 @@ char compressed_template[] = "\xC8\x4D\xCC\xCA\x2F\xB2\x86\xB2\x33\xF3\x40\x6C\x17\x30\x27\x2D" "\x27\x31\xBD\xD8\x9A\xAB\x96\x8B\x0B\x00"; -char object[] = +static char object[] = "xof 0302txt 0064\n" "Header Object\n" "{\n" @@ -64,24 +64,24 @@ char object[] = "}\n"; /* Same version as above compressed with mszip */ -char compressed_object[] = +static char compressed_object[] = "xof 0302tzip0064\x2c\x00\x00\x00\x1c\x00\x20\x00" "\x43\x4b\xf3\x48\x4d\x4c\x49\x2d\x52\xf0\x4f\xca\x4a\x4d\x2e\xe1" "\xaa\xe6\x32\xb4\x56\x30\xb2\x56\x30\xb6\xe6\xaa\xe5\xe2\x02\x00"; -char empty_txt_file[] = "xof 0302txt 0064"; -char empty_bin_file[] = "xof 0302bin 0064"; +static char empty_txt_file[] = "xof 0302txt 0064"; +static char empty_bin_file[] = "xof 0302bin 0064"; /* MSZip data is generated with the command "MAKECAB.EXE /D Compress=ON /D CompressionType=MSZip file packed" * Data in cab is after the filename (null terminated) and the 32-bit checksum: * size (16-bit), packed_size (16-bit) and compressed data (with leading 16-bit CK signature) * Data in x files is preceding by 2 16-bit words: size with xof header (16 bytes) and a 0 value * It does not seem possible to generate a MSZip data with no byte, so put just 1 byte here */ /* "\n" packed with MSZip => not text */ -char empty_tzip_file[] = "xof 0302tzip0064\x11\x00\x00\x00\x01\x00\x05\x00\x43\x4b\xe3\x02\x00"; +static char empty_tzip_file[] = "xof 0302tzip0064\x11\x00\x00\x00\x01\x00\x05\x00\x43\x4b\xe3\x02\x00"; /* "\n" packed with MSZip => not token (token are 16-bit and there is only 1 byte) */ -char empty_bzip_file[] = "xof 0302bzip0064\x11\x00\x00\x00\x01\x00\x05\x00\x43\x4b\xe3\x02\x00"; -char empty_cmp_file[] = "xof 0302cmp 0064"; -char empty_xxxx_file[] = "xof 0302xxxx0064"; +static char empty_bzip_file[] = "xof 0302bzip0064\x11\x00\x00\x00\x01\x00\x05\x00\x43\x4b\xe3\x02\x00"; +static char empty_cmp_file[] = "xof 0302cmp 0064"; +static char empty_xxxx_file[] = "xof 0302xxxx0064"; static void init_function_pointers(void) {
1
0
0
0
Alexandre Julliard : cabinet/tests: Make some variables static.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 9a39cb94e4fbb89b6a243ed242e648d8c30fcde7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9a39cb94e4fbb89b6a243ed24…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:38:58 2010 +0200 cabinet/tests: Make some variables static. --- dlls/cabinet/tests/extract.c | 4 ++-- dlls/cabinet/tests/fdi.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c index 29fd1c7..aedbdd4 100644 --- a/dlls/cabinet/tests/extract.c +++ b/dlls/cabinet/tests/extract.c @@ -55,10 +55,10 @@ typedef struct { } SESSION; /* function pointers */ -HMODULE hCabinet; +static HMODULE hCabinet; static HRESULT (WINAPI *pExtract)(SESSION*, LPCSTR); -CHAR CURR_DIR[MAX_PATH]; +static CHAR CURR_DIR[MAX_PATH]; static void init_function_pointers(void) { diff --git a/dlls/cabinet/tests/fdi.c b/dlls/cabinet/tests/fdi.c index 5d470fa..7c7317f 100644 --- a/dlls/cabinet/tests/fdi.c +++ b/dlls/cabinet/tests/fdi.c @@ -28,7 +28,7 @@ #define MEDIA_SIZE 999999999 #define FOLDER_THRESHOLD 900000 -CHAR CURR_DIR[MAX_PATH]; +static CHAR CURR_DIR[MAX_PATH]; /* FDI callbacks */
1
0
0
0
Alexandre Julliard : taskkill: Make some variables static.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 95e095ba314576b57e34a5571c4e7f2ef3b17181 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=95e095ba314576b57e34a5571…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:38:41 2010 +0200 taskkill: Make some variables static. --- programs/taskkill/taskkill.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/programs/taskkill/taskkill.c b/programs/taskkill/taskkill.c index 5508bfe..8dffdcd 100644 --- a/programs/taskkill/taskkill.c +++ b/programs/taskkill/taskkill.c @@ -25,11 +25,10 @@ #include "taskkill.h" +static int force_termination; -int force_termination; - -WCHAR **task_list; -unsigned int task_count; +static WCHAR **task_list; +static unsigned int task_count; struct pid_close_info {
1
0
0
0
Alexandre Julliard : clock: Make some variables static.
by Alexandre Julliard
01 Oct '10
01 Oct '10
Module: wine Branch: master Commit: 8599a53d2460ac18f6021b7646ad547c95dc5568 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8599a53d2460ac18f6021b764…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Oct 1 13:38:36 2010 +0200 clock: Make some variables static. --- programs/clock/winclock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/clock/winclock.c b/programs/clock/winclock.c index 34d18dd..0b2def1 100644 --- a/programs/clock/winclock.c +++ b/programs/clock/winclock.c @@ -46,7 +46,7 @@ typedef struct POINT End; } HandData; -HandData HourHand, MinuteHand, SecondHand; +static HandData HourHand, MinuteHand, SecondHand; static void DrawTicks(HDC dc, const POINT* centre, int radius) {
1
0
0
0
← Newer
1
...
113
114
115
116
117
118
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
Results per page:
10
25
50
100
200