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 2006
----- 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
5 participants
857 discussions
Start a n
N
ew thread
Andrew Talbot : crypt32/tests: Write-strings warnings fix.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: a0f208755e21bff7d7267e743dfa9b247861804f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a0f208755e21bff7d7267e7…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Tue Jul 18 21:48:44 2006 +0100 crypt32/tests: Write-strings warnings fix. --- dlls/crypt32/tests/main.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/crypt32/tests/main.c b/dlls/crypt32/tests/main.c index 81a5a49..ec3d6e6 100644 --- a/dlls/crypt32/tests/main.c +++ b/dlls/crypt32/tests/main.c @@ -31,8 +31,9 @@ static void test_findAttribute(void) { PCRYPT_ATTRIBUTE ret; BYTE blobbin[] = {0x02,0x01,0x01}; + static CHAR oid[] = "1.2.3"; CRYPT_ATTR_BLOB blobs[] = { { sizeof blobbin, blobbin }, }; - CRYPT_ATTRIBUTE attr = { "1.2.3", sizeof(blobs) / sizeof(blobs[0]), blobs }; + CRYPT_ATTRIBUTE attr = { oid, sizeof(blobs) / sizeof(blobs[0]), blobs }; /* returns NULL, last error not set */ SetLastError(0xdeadbeef); @@ -71,8 +72,9 @@ static void test_findAttribute(void) static void test_findExtension(void) { PCERT_EXTENSION ret; + static CHAR oid[] = "1.2.3"; BYTE blobbin[] = {0x02,0x01,0x01}; - CERT_EXTENSION ext = { "1.2.3", TRUE, { sizeof blobbin, blobbin } }; + CERT_EXTENSION ext = { oid, TRUE, { sizeof blobbin, blobbin } }; /* returns NULL, last error not set */ SetLastError(0xdeadbeef); @@ -111,9 +113,10 @@ static void test_findExtension(void) static void test_findRDNAttr(void) { PCERT_RDN_ATTR ret; + static CHAR oid[] = "1.2.3"; BYTE bin[] = { 0x16,0x09,'J','u','a','n',' ','L','a','n','g' }; CERT_RDN_ATTR attrs[] = { - { "1.2.3", CERT_RDN_IA5_STRING, { sizeof bin, bin } }, + { oid, CERT_RDN_IA5_STRING, { sizeof bin, bin } }, }; CERT_RDN rdns[] = { { sizeof(attrs) / sizeof(attrs[0]), attrs },
1
0
0
0
Benjamin Arai : oleaut32: Update error codes for VarMod.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: 911af4dce9c0b0d5984491baae7e515647519d2e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=911af4dce9c0b0d5984491b…
Author: Benjamin Arai <me(a)benjaminarai.com> Date: Tue Jul 18 11:14:48 2006 -0700 oleaut32: Update error codes for VarMod. --- dlls/oleaut32/tests/vartest.c | 4 ++-- dlls/oleaut32/variant.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c index 642bd94..addc01c 100644 --- a/dlls/oleaut32/tests/vartest.c +++ b/dlls/oleaut32/tests/vartest.c @@ -2456,7 +2456,7 @@ static void test_VarMod(void) hexpected = DISP_E_TYPEMISMATCH; } else if((l == VT_NULL) && (r == VT_DECIMAL)) { - hexpected = DISP_E_OVERFLOW; + hexpected = E_INVALIDARG; } else if((l == VT_UNKNOWN) || ((r == VT_UNKNOWN) && lFound && lValid)) { hexpected = DISP_E_TYPEMISMATCH; @@ -2465,7 +2465,7 @@ static void test_VarMod(void) hexpected = S_OK; } else if((l == VT_DECIMAL) || ((r == VT_DECIMAL) && lFound && lValid)) { - hexpected = DISP_E_OVERFLOW; + hexpected = E_INVALIDARG; } else if(l == VT_RECORD) { hexpected = DISP_E_TYPEMISMATCH; diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c index 2de8550..3916b1c 100644 --- a/dlls/oleaut32/variant.c +++ b/dlls/oleaut32/variant.c @@ -4600,7 +4600,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LP return DISP_E_TYPEMISMATCH; case VT_DECIMAL: V_VT(result) = VT_EMPTY; - return DISP_E_OVERFLOW; + return E_INVALIDARG; case VT_ERROR: return DISP_E_TYPEMISMATCH; case VT_RECORD: @@ -4685,7 +4685,7 @@ HRESULT WINAPI VarMod(LPVARIANT left, LP } else { V_VT(result) = VT_EMPTY; - return DISP_E_OVERFLOW; + return E_INVALIDARG; } case VT_ERROR: return DISP_E_TYPEMISMATCH;
1
0
0
0
Huw Davies : msxml3: removeChild should catch a NULL child node.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: a307901ac04595ade0be41ad5d6416b4a70fe31f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a307901ac04595ade0be41a…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Jul 18 15:54:16 2006 +0100 msxml3: removeChild should catch a NULL child node. --- dlls/msxml3/node.c | 3 +++ dlls/msxml3/tests/domdoc.c | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index d7af878..1109a98 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -452,6 +452,9 @@ static HRESULT WINAPI xmlnode_removeChil TRACE("%p->(%p, %p)\n", This, childNode, oldChild); *oldChild = NULL; + + if(!childNode) return E_INVALIDARG; + hr = IXMLDOMNode_QueryInterface(childNode, &IID_IXMLDOMNode, (LPVOID)&child); if(FAILED(hr)) return hr; diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index ecb8308..aaad036 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -1054,6 +1054,9 @@ static void test_removeChild(void) r = IXMLDOMNodeList_get_item( node_list, 0, &node4 ); ok( r == S_OK, "ret %08lx\n", r); + r = IXMLDOMElement_removeChild( element, NULL, &node2 ); + ok( r == E_INVALIDARG, "ret %08lx\n", r ); + r = IXMLDOMElement_removeChild( element, node4, &node2 ); ok( r == S_OK, "ret %08lx\n", r); ok( node4 == node2, "node %p node2 %p\n", node4, node2 );
1
0
0
0
Huw Davies : msxml3: Add a test to check that selectSingleNode returns a NULL-ptr when it doesn 't find a match.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: 120e808f13d84eab358e12593b1924bb3e943d18 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=120e808f13d84eab358e125…
Author: Huw Davies <huw(a)codeweavers.com> Date: Tue Jul 18 15:53:00 2006 +0100 msxml3: Add a test to check that selectSingleNode returns a NULL-ptr when it doesn't find a match. --- dlls/msxml3/tests/domdoc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index 7cd0822..ecb8308 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -511,8 +511,10 @@ todo_wine else ok( FALSE, "no element\n"); + node = (void*)0xdeadbeef; r = IXMLDOMNode_selectSingleNode( element, (BSTR)szdl, &node ); ok( r == S_FALSE, "ret %08lx\n", r ); + ok( node == NULL, "node %p\n", node ); r = IXMLDOMNode_selectSingleNode( element, (BSTR)szbs, &node ); ok( r == S_OK, "ret %08lx\n", r ); r = IXMLDOMNode_Release( node );
1
0
0
0
Juan Lang : msi: Set name in ACTION_AppSearchGetSignature.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: 2590c081a1e3a5a44200952797a23572a7b5e711 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=2590c081a1e3a5a44200952…
Author: Juan Lang <juan_lang(a)yahoo.com> Date: Tue Jul 18 06:50:35 2006 -0700 msi: Set name in ACTION_AppSearchGetSignature. --- dlls/msi/appsearch.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index bea0c29..ce99eac 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -37,7 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi); typedef struct tagMSISIGNATURE { - LPWSTR Name; /* NOT owned by this structure */ + LPCWSTR Name; /* NOT owned by this structure */ LPWSTR File; DWORD MinVersionMS; DWORD MinVersionLS; @@ -95,6 +95,7 @@ static UINT ACTION_AppSearchGetSignature TRACE("(package %p, sig %p)\n", package, sig); memset(sig, 0, sizeof(*sig)); + sig->Name = name; rc = MSI_OpenQuery(package->db, &view, ExecSeqQuery, name); if (rc == ERROR_SUCCESS) { @@ -951,9 +952,7 @@ UINT ACTION_AppSearch(MSIPACKAGE *packag } TRACE("Searching for Property %s, Signature_ %s\n", debugstr_w(propBuf), debugstr_w(sigBuf)); - /* This clears all the fields, so set Name and Property afterward */ rc = ACTION_AppSearchGetSignature(package, &sig, sigBuf); - sig.Name = sigBuf; if (rc == ERROR_SUCCESS) { rc = ACTION_AppSearchComponents(package, &value, &sig);
1
0
0
0
Juan Lang : crypt32: Don't return from a try block.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: dc98a727f33bdd67c8de859a6a95b6153af9f286 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=dc98a727f33bdd67c8de859…
Author: Juan Lang <juan_lang(a)yahoo.com> Date: Tue Jul 18 06:41:21 2006 -0700 crypt32: Don't return from a try block. --- dlls/crypt32/encode.c | 45 +++++++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 20 deletions(-) diff --git a/dlls/crypt32/encode.c b/dlls/crypt32/encode.c index fc8235a..2aa6b67 100644 --- a/dlls/crypt32/encode.c +++ b/dlls/crypt32/encode.c @@ -945,32 +945,37 @@ static BOOL WINAPI CRYPT_AsnEncodeNameVa case CERT_RDN_ANY_TYPE: /* explicitly disallowed */ SetLastError(E_INVALIDARG); - return FALSE; + ret = FALSE; + break; default: FIXME("String type %ld unimplemented\n", value->dwValueType); - return FALSE; + ret = FALSE; } - CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); - bytesNeeded = 1 + lenBytes + encodedLen; - if (!pbEncoded) - *pcbEncoded = bytesNeeded; - else + if (ret) { - if ((ret = CRYPT_EncodeEnsureSpace(dwFlags, pEncodePara, pbEncoded, - pcbEncoded, bytesNeeded))) + CRYPT_EncodeLen(encodedLen, NULL, &lenBytes); + bytesNeeded = 1 + lenBytes + encodedLen; + if (!pbEncoded) + *pcbEncoded = bytesNeeded; + else { - if (dwFlags & CRYPT_ENCODE_ALLOC_FLAG) - pbEncoded = *(BYTE **)pbEncoded; - *pbEncoded++ = tag; - CRYPT_EncodeLen(encodedLen, pbEncoded, &lenBytes); - pbEncoded += lenBytes; - switch (value->dwValueType) + if ((ret = CRYPT_EncodeEnsureSpace(dwFlags, pEncodePara, + pbEncoded, pcbEncoded, bytesNeeded))) { - case CERT_RDN_NUMERIC_STRING: - case CERT_RDN_PRINTABLE_STRING: - case CERT_RDN_T61_STRING: - case CERT_RDN_IA5_STRING: - memcpy(pbEncoded, value->Value.pbData, value->Value.cbData); + if (dwFlags & CRYPT_ENCODE_ALLOC_FLAG) + pbEncoded = *(BYTE **)pbEncoded; + *pbEncoded++ = tag; + CRYPT_EncodeLen(encodedLen, pbEncoded, &lenBytes); + pbEncoded += lenBytes; + switch (value->dwValueType) + { + case CERT_RDN_NUMERIC_STRING: + case CERT_RDN_PRINTABLE_STRING: + case CERT_RDN_T61_STRING: + case CERT_RDN_IA5_STRING: + memcpy(pbEncoded, value->Value.pbData, + value->Value.cbData); + } } } }
1
0
0
0
Jacek Caban : mshtml: Added stub implementation of ShowHTMLDialog.
by Alexandre Julliard
19 Jul '06
19 Jul '06
Module: wine Branch: refs/heads/master Commit: 5b37fe45bb5cefd75236e99e9e60207183b11247 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=5b37fe45bb5cefd75236e99…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Jul 18 01:17:58 2006 +0200 mshtml: Added stub implementation of ShowHTMLDialog. --- dlls/mshtml/main.c | 10 ++++++++++ dlls/mshtml/mshtml.spec | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/main.c b/dlls/mshtml/main.c index 1bb34de..f713e27 100644 --- a/dlls/mshtml/main.c +++ b/dlls/mshtml/main.c @@ -224,6 +224,16 @@ HRESULT WINAPI DllInstall(BOOL bInstall, return S_OK; } +/*********************************************************************** + * ShowHTMLDialog (MSHTML.@) + */ +HRESULT WINAPI ShowHTMLDialog(HWND hwndParent, IMoniker *pMk, VARIANT *pvarArgIn, + WCHAR *pchOptions, VARIANT *pvarArgOut) +{ + FIXME("(%p %p %p %s %p)\n", hwndParent, pMk, pvarArgIn, debugstr_w(pchOptions), pvarArgOut); + return E_NOTIMPL; +} + DEFINE_GUID(CLSID_CAnchorBrowsePropertyPage, 0x3050F3BB, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); DEFINE_GUID(CLSID_CBackgroundPropertyPage, 0x3050F232, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); DEFINE_GUID(CLSID_CCDAnchorPropertyPage, 0x3050F1FC, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); diff --git a/dlls/mshtml/mshtml.spec b/dlls/mshtml/mshtml.spec index 705d559..c8e1be5 100644 --- a/dlls/mshtml/mshtml.spec +++ b/dlls/mshtml/mshtml.spec @@ -9,7 +9,7 @@ @ stub PrintHTML @ stdcall RNIGetCompatibleVersion() @ stdcall RunHTMLApplication(long long str long) -@ stub ShowHTMLDialog +@ stdcall ShowHTMLDialog(ptr ptr ptr wstr ptr) @ stub ShowModalDialog @ stub ShowModelessHTMLDialog @ stub SvrTri_ClearCache
1
0
0
0
appdb/include screenshot.php
by WineHQ
19 Jul '06
19 Jul '06
ChangeSet ID: 26633 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/07/18 19:54:56 Modified files: include : screenshot.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Fix centering of screenshot images on application/version pages Patch:
http://cvs.winehq.org/patch.py?id=26633
Old revision New revision Changes Path 1.47 1.48 +2 -2 appdb/include/screenshot.php Index: appdb/include/screenshot.php diff -u -p appdb/include/screenshot.php:1.47 appdb/include/screenshot.php:1.48 --- appdb/include/screenshot.php:1.47 19 Jul 2006 0:54:56 -0000 +++ appdb/include/screenshot.php 19 Jul 2006 0:54:56 -0000 @@ -394,11 +394,11 @@ class Screenshot { if(!$hResult || !mysql_num_rows($hResult)) { - $sImgFile = '<img src="images/no_screenshot.png" alt="No Screenshot" />'; + $sImgFile.= '<img src="images/no_screenshot.png" alt="No Screenshot" />'; } else { $oRow = mysql_fetch_object($hResult); - $sImgFile = '<img src="appimage.php?bThumbnail=true&iId='.$oRow->id.'" alt="'.$oRow->description.'" />'; + $sImgFile.= '<img src="appimage.php?bThumbnail=true&iId='.$oRow->id.'" alt="'.$oRow->description.'" />'; } if($bFormatting)
1
0
0
0
appdb/include vote.php
by WineHQ
19 Jul '06
19 Jul '06
ChangeSet ID: 26632 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/07/18 19:11:40 Modified files: include : vote.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Fix voting(again) by changing all variables to use the new naming scheme Patch:
http://cvs.winehq.org/patch.py?id=26632
Old revision New revision Changes Path 1.22 1.23 +39 -39 appdb/include/vote.php Index: appdb/include/vote.php diff -u -p appdb/include/vote.php:1.22 appdb/include/vote.php:1.23 --- appdb/include/vote.php:1.22 19 Jul 2006 0:11:40 -0000 +++ appdb/include/vote.php 19 Jul 2006 0:11:40 -0000 @@ -7,18 +7,18 @@ define('MAX_VOTES',3); /** * count the number of votes for appId by userId */ -function vote_count($appId, $userId = null) +function vote_count($iAppId, $iUserId = null) { - if(!$userId) + if(!$iUserId) { if($_SESSION['current']->isLoggedIn()) - $userId = $_SESSION['current']->iUserId; + $iUserId = $_SESSION['current']->iUserId; else return 0; -} + } $hResult = query_parameters("SELECT * FROM appVotes WHERE appId = '?' AND userId = '?'", - $appId, $userId); + $iAppId, $iUserId); return mysql_num_rows($hResult); } @@ -26,16 +26,16 @@ function vote_count($appId, $userId = nu /** * total votes by userId */ -function vote_count_user_total($userId = null) +function vote_count_user_total($iUserId = null) { - if(!$userId) + if(!$iUserId) { if($_SESSION['current']->isLoggedIn()) - $userId = $_SESSION['current']->iUserId; + $iUserId = $_SESSION['current']->iUserId; else return 0; } - $hResult = query_parameters("SELECT * FROM appVotes WHERE userId = '?'", $userId); + $hResult = query_parameters("SELECT * FROM appVotes WHERE userId = '?'", $iUserId); return mysql_num_rows($hResult); } @@ -43,9 +43,9 @@ function vote_count_user_total($userId = /* * total votes for appId */ -function vote_count_app_total($appId) +function vote_count_app_total($iAppId) { - $hResult = query_parameters("SELECT * FROM appVotes WHERE appId = '?'", $appId); + $hResult = query_parameters("SELECT * FROM appVotes WHERE appId = '?'", $iAppId); return mysql_num_rows($hResult); } @@ -53,55 +53,55 @@ function vote_count_app_total($appId) /** * add a vote for appId */ -function vote_add($appId, $slot, $userId = null) +function vote_add($iAppId, $iSlot, $iUserId = null) { - if(!$userId) + if(!$iUserId) { if($_SESSION['current']->isLoggedIn()) - $userId = $_SESSION['current']->iUserId; + $iUserId = $_SESSION['current']->iUserId; else return; } - if($slot > MAX_VOTES) + if($iSlot > MAX_VOTES) return; - vote_remove($slot, $userId); + vote_remove($iSlot, $iUserId); query_parameters("INSERT INTO appVotes (id, time, appId, userId, slot) - VALUES (?, ?, '?', '?', '?')", "null", "null", $appId, $userId, $slot); + VALUES (?, ?, '?', '?', '?')", "null", "null", $iAppId, $iUserId, $iSlot); } /** * remove vote for a slot */ -function vote_remove($slot, $userId = null) +function vote_remove($iSlot, $iUserId = null) { - if(!$userId) + if(!$iUserId) { if($_SESSION['current']->isLoggedIn()) - $userId = $_SESSION['current']->iUserId; + $iUserId = $_SESSION['current']->iUserId; else return; } $sQuery = "DELETE FROM appVotes WHERE userId = '?' AND slot = '?'"; - query_parameters($sQuery, $userId, $slot); + query_parameters($sQuery, $iUserId, $iSlot); } -function vote_get_user_votes($userId = null) +function vote_get_user_votes($iUserId = null) { - if(!$userId) + if(!$iUserId) { if($_SESSION['current']->isLoggedIn()) - $userId = $_SESSION['current']->iUserId; - if(!$userId) + $iUserId = $_SESSION['current']->iUserId; + if(!$iUserId) return array(); } - $hResult = query_parameters("SELECT * FROM appVotes WHERE userId = '?'", $userId); + $hResult = query_parameters("SELECT * FROM appVotes WHERE userId = '?'", $iUserId); if(!$hResult) return array(); @@ -128,7 +128,7 @@ function vote_menu() { $sAppName = Application::lookup_name($votes[$i]->appId); $str = "<a href='appview.php?iAppId=".$votes[$i]->appId."'> $sAppName</a>"; - $m->add("<input type=radio name=slot value='$i'> ".$str); + $m->add("<input type=radio name=iSlot value='$i'> ".$str); } else $m->add("<input type=radio name=iSlot value='$i'> No App Selected"); @@ -156,7 +156,7 @@ function vote_update($vars) if( !is_numeric($vars['iAppId']) OR !is_numeric($vars['iSlot'])) { if(is_numeric($vars['iAppId'])) - util_redirect_and_exit(apidb_fullurl("appview.php?iAppId=".$vars["iAppId"])); + util_redirect_and_exit(apidb_fullurl("appview.php?iAppId=".$vars['iAppId'])); else util_redirect_and_exit(apidb_fullurl("index.php")); @@ -165,37 +165,37 @@ function vote_update($vars) if($vars["sVote"]) { - addmsg("Registered vote for App #".$vars["iAppId"], "green"); - vote_add($vars["iAppId"], $vars["slot"]); - } else if($vars["sClear"]) + addmsg("Registered vote for App #".$vars['iAppId'], "green"); + vote_add($vars['iAppId'], $vars['iSlot']); + } else if($vars['sClear']) { /* see if we have a vote in this slot, if we don't there is */ /* little reason to remove it or even mention that we did anything */ - if(is_vote_in_slot($vars["slot"])) + if(is_vote_in_slot($vars['iSlot'])) { - vote_remove($vars["slot"]); - addmsg("Removed vote for App #".$vars["iAppId"], "green"); + vote_remove($vars['iSlot']); + addmsg("Removed vote for App #".$vars['iAppId'], "green"); } } - util_redirect_and_exit(apidb_fullurl("appview.php?iAppId=".$vars["iAppId"])); + util_redirect_and_exit(apidb_fullurl("appview.php?iAppId=".$vars['iAppId'])); } // tell us if there is a vote in a given slot so we don't // display incorrect information to the user or go // through the trouble of trying to remove a vote that doesn't exist -function is_vote_in_slot($slot, $userId = null) +function is_vote_in_slot($iSlot, $iUserId = null) { - if(!$userId) + if(!$iUserId) { if($_SESSION['current']->isLoggedIn()) - $userId = $_SESSION['current']->iUserId; + $iUserId = $_SESSION['current']->iUserId; else return; } $sQuery = "SELECT COUNT(*) as count from appVotes WHERE userId = '?' AND slot = '?'"; - if($hResult = query_parameters($sQuery, $userId, $slot)) + if($hResult = query_parameters($sQuery, $iUserId, $iSlot)) { $oRow = mysql_fetch_object($hResult); if($oRow->count != 0)
1
0
0
0
appdb/include html.php
by WineHQ
19 Jul '06
19 Jul '06
ChangeSet ID: 26631 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/07/18 19:11:11 Modified files: include : html.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Remove some unused functions from html.php Patch:
http://cvs.winehq.org/patch.py?id=26631
Old revision New revision Changes Path 1.7 1.8 +0 -66 appdb/include/html.php Index: appdb/include/html.php diff -u -p appdb/include/html.php:1.7 appdb/include/html.php:1.8 --- appdb/include/html.php:1.7 19 Jul 2006 0:11:11 -0000 +++ appdb/include/html.php 19 Jul 2006 0:11:11 -0000 @@ -56,12 +56,6 @@ function do_html_tr($t, $arr, $class, $e return $str; } -// HTML TH -function html_th($arr, $class = "", $extra = "") -{ - return do_html_tr("th", $arr, $class, $extra); -} - // HTML TR function html_tr($arr, $class = "", $extra = "") { @@ -117,13 +111,6 @@ function html_body_end() return do_indent("</body>", -1); } - -// HTML BR -function html_br($count = 1) -{ - return do_indent(str_repeat("<br>", $count)); -} - // HTML A HREF function html_ahref($label, $url, $extra = "") { @@ -142,39 +129,6 @@ function html_ahref($label, $url, $extra } } -// HTML echo a string -function html_echo($str) -{ - return do_indent($str); -} - -// HTML B (bold) -function html_b($str) -{ - return do_indent("<b>$str</b>"); -} - -// HTML SMALL (small text) -function html_small($str) -{ - return do_indent("<small>$str</small>"); -} - -// HTML P -function html_p() -{ - return do_indent("<p>"); -} - -function html_line($thickness = 1, $colspan = 1, $color = "#000000") -{ - return do_indent("<tr><td bgcolor=\"$color\" colspan=$colspan> ". - "<img src=\"/images/blank.gif\" height=\"$thickness\" ". - "vspace=\"0\"> </td></tr>"); -} - - - function html_imagebutton($text, $url, $extra = "") { static $i = 1; @@ -325,24 +279,4 @@ function make_inx_option_list($varname, } - -function make_quality_option_list($varname, $quality) -{ - $list = array(-1, 1, 2, 3, 4, 5); - echo "<select name='$varname'>\n"; - while(list($idx, $value) = each($list)) - { - if($value == -1) - $label = "unknown"; - else - $label = $value; - - if($quality == $value) - echo "<option value=$value selected>$label\n"; - else - echo "<option value=$value>$label\n"; - } - echo "</select>\n"; -} - ?>
1
0
0
0
← Newer
1
...
35
36
37
38
39
40
41
...
86
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
Results per page:
10
25
50
100
200