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
May 2007
----- 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
715 discussions
Start a n
N
ew thread
Rob Shearman : wininet: Pass context to InitializeSecurityContext in second parameter.
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: 7b94871c9f1c93f02f5265c2240ceb3ed1b0d4b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7b94871c9f1c93f02f5265c22…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Sat May 26 08:49:12 2007 +0100 wininet: Pass context to InitializeSecurityContext in second parameter. Otherwise, the call will now fail with SEC_E_INVALID_HANDLE. --- dlls/wininet/http.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 4febb76..54f6410 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -426,6 +426,7 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue struct HttpAuthInfo *pAuthInfo = lpwhr->pAuthInfo; LPWSTR password = lpwhr->lpHttpSession->lpszPassword; LPWSTR domain_and_username = lpwhr->lpHttpSession->lpszUserName; + BOOL first = FALSE; TRACE("%s\n", debugstr_w(pszAuthValue)); @@ -435,6 +436,7 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue { TimeStamp exp; + first = TRUE; pAuthInfo = HeapAlloc(GetProcessHeap(), 0, sizeof(*pAuthInfo)); if (!pAuthInfo) return FALSE; @@ -561,7 +563,8 @@ static BOOL HTTP_DoAuthorization( LPWININETHTTPREQW lpwhr, LPCWSTR pszAuthValue out_desc.cBuffers = 1; out_desc.pBuffers = &out; - sec_status = InitializeSecurityContextW(&pAuthInfo->cred, NULL, NULL, + sec_status = InitializeSecurityContextW(first ? &pAuthInfo->cred : NULL, + first ? NULL : &pAuthInfo->ctx, NULL, context_req, 0, SECURITY_NETWORK_DREP, in.pvBuffer ? &in_desc : NULL, 0, &pAuthInfo->ctx, &out_desc,
1
0
0
0
Rob Shearman : setupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog file .
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: 34556854eda0de9d098968e8d948090d44030d25 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=34556854eda0de9d098968e8d…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Sat May 26 09:05:13 2007 +0100 setupapi: Add a FIXME in SetupCopyOEMInfW for when we should be copying a catalog file. --- dlls/setupapi/misc.c | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 deletions(-) diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c index 2a91b17..bc3e764 100644 --- a/dlls/setupapi/misc.c +++ b/dlls/setupapi/misc.c @@ -950,9 +950,12 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location, DWORD buffer_size, PDWORD required_size, PWSTR *component ) { BOOL ret = FALSE; - WCHAR target[MAX_PATH], *p; + WCHAR target[MAX_PATH], catalog_file[MAX_PATH], *p; static const WCHAR inf[] = { '\\','i','n','f','\\',0 }; + static const WCHAR wszVersion[] = { 'V','e','r','s','i','o','n',0 }; + static const WCHAR wszCatalogFile[] = { 'C','a','t','a','l','o','g','F','i','l','e',0 }; DWORD size; + HINF hinf; TRACE("%s, %s, %d, %d, %p, %d, %p, %p\n", debugstr_w(source), debugstr_w(location), media_type, style, dest, buffer_size, required_size, component); @@ -1036,6 +1039,25 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location, } } + hinf = SetupOpenInfFileW( source, NULL, INF_STYLE_WIN4, NULL ); + if (hinf == INVALID_HANDLE_VALUE) return FALSE; + + if (SetupGetLineTextW( NULL, hinf, wszVersion, wszCatalogFile, catalog_file, + sizeof(catalog_file)/sizeof(catalog_file[0]), NULL )) + { + WCHAR source_cat[MAX_PATH]; + strcpyW( source_cat, source ); + + p = strrchrW( source_cat, '\\' ); + if (p) p++; + else p = source_cat; + + strcpyW( p, catalog_file ); + + FIXME("install catalog file %s\n", debugstr_w( source_cat )); + } + SetupCloseInfFile( hinf ); + if (!(ret = CopyFileW( source, target, (style & SP_COPY_NOOVERWRITE) != 0 ))) return ret;
1
0
0
0
Kai Blin : ws2_32: Make WS2_send trace more readble.
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: 29b3a163063a033db30b337fd67197850e3e9a60 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=29b3a163063a033db30b337fd…
Author: Kai Blin <kai.blin(a)gmail.com> Date: Sat May 26 01:11:39 2007 +0200 ws2_32: Make WS2_send trace more readble. --- dlls/ws2_32/socket.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index e30e387..3204af3 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -1293,7 +1293,7 @@ static int WS2_send( int fd, struct iovec* iov, int count, { struct msghdr hdr; int n; - TRACE( "fd %d, iovec %p, count %d addr %s, len %d, flags %x\n", + TRACE( "fd %d, iovec %p, count %d, addr %s, len %d, flags %x\n", fd, iov, count, debugstr_sockaddr(to), tolen, dwFlags); hdr.msg_name = NULL;
1
0
0
0
Kai Blin : secur32: Downgrade WARN to TRACE, fix another TRACE.
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: c1e724bc881d89bb4b08ae9954fc7e7694f3cdbc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c1e724bc881d89bb4b08ae995…
Author: Kai Blin <kai.blin(a)gmail.com> Date: Sat May 26 01:11:46 2007 +0200 secur32: Downgrade WARN to TRACE, fix another TRACE. --- dlls/secur32/ntlm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c index 5a00c7a..4c7f3b4 100644 --- a/dlls/secur32/ntlm.c +++ b/dlls/secur32/ntlm.c @@ -608,7 +608,8 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW( if(pInput->pBuffers[input_token_idx].cbBuffer > max_len) { - TRACE("pInput->pBuffers[0].cbBuffer is: %ld\n", + TRACE("pInput->pBuffers[%d].cbBuffer is: %ld\n", + input_token_idx, pInput->pBuffers[input_token_idx].cbBuffer); ret = SEC_E_INVALID_TOKEN; goto isc_end; @@ -657,7 +658,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW( if (!pOutput || ((token_idx = ntlm_GetTokenBufferIndex(pOutput)) == -1)) { - WARN("no SECBUFFER_TOKEN buffer could be found\n"); + TRACE("no SECBUFFER_TOKEN buffer could be found\n"); ret = SEC_E_BUFFER_TOO_SMALL; goto isc_end; }
1
0
0
0
Andrew Talbot : winmm: Exclude unused headers.
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: 5f8d15027e7472a943471cfad1bb307e1c6ed9b7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5f8d15027e7472a943471cfad…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Fri May 25 17:51:45 2007 +0100 winmm: Exclude unused headers. --- dlls/winmm/lolvldrv.c | 2 -- dlls/winmm/message16.c | 2 -- dlls/winmm/mmsystem.c | 1 - dlls/winmm/winmm.c | 1 - 4 files changed, 0 insertions(+), 6 deletions(-) diff --git a/dlls/winmm/lolvldrv.c b/dlls/winmm/lolvldrv.c index a21e32b..55ed500 100644 --- a/dlls/winmm/lolvldrv.c +++ b/dlls/winmm/lolvldrv.c @@ -30,11 +30,9 @@ #include "windef.h" #include "winbase.h" #include "winreg.h" -#include "winver.h" #include "winemm.h" #include "wine/debug.h" #include "wine/exception.h" -#include "excpt.h" WINE_DEFAULT_DEBUG_CHANNEL(winmm); diff --git a/dlls/winmm/message16.c b/dlls/winmm/message16.c index 54e9939..c9d5f95 100644 --- a/dlls/winmm/message16.c +++ b/dlls/winmm/message16.c @@ -25,8 +25,6 @@ #include "wine/winbase16.h" #include "windef.h" #include "winbase.h" -#include "winreg.h" -#include "winver.h" #include "wownt32.h" #include "winemm16.h" #include "digitalv.h" diff --git a/dlls/winmm/mmsystem.c b/dlls/winmm/mmsystem.c index b86c0c5..ac6e537 100644 --- a/dlls/winmm/mmsystem.c +++ b/dlls/winmm/mmsystem.c @@ -34,7 +34,6 @@ #include "windef.h" #include "winbase.h" #include "mmsystem.h" -#include "winreg.h" #include "winternl.h" #include "wownt32.h" #include "winnls.h" diff --git a/dlls/winmm/winmm.c b/dlls/winmm/winmm.c index 3139e79..e98b405 100644 --- a/dlls/winmm/winmm.c +++ b/dlls/winmm/winmm.c @@ -50,7 +50,6 @@ #include "mmsystem.h" #include "winuser.h" #include "winnls.h" -#include "winreg.h" #include "winternl.h" #include "winemm.h"
1
0
0
0
Andrew Talbot : ws2_32: Exclude unused headers.
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: 9d59c0300caa92317961b60cfae0f89e66750fa9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9d59c0300caa92317961b60cf…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Fri May 25 17:51:53 2007 +0100 ws2_32: Exclude unused headers. --- dlls/ws2_32/async.c | 1 - dlls/ws2_32/protocol.c | 1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/dlls/ws2_32/async.c b/dlls/ws2_32/async.c index 8598953..ef7be5f 100644 --- a/dlls/ws2_32/async.c +++ b/dlls/ws2_32/async.c @@ -104,7 +104,6 @@ #include "wingdi.h" #include "winuser.h" #include "winsock2.h" -#include "mswsock.h" #include "ws2spi.h" #include "wownt32.h" #include "wine/winsock16.h" diff --git a/dlls/ws2_32/protocol.c b/dlls/ws2_32/protocol.c index 4dcad3a..2f71d32 100644 --- a/dlls/ws2_32/protocol.c +++ b/dlls/ws2_32/protocol.c @@ -40,7 +40,6 @@ #include "windef.h" #include "winbase.h" -#include "winnls.h" #include "wtypes.h" #include "nspapi.h" #include "winsock2.h"
1
0
0
0
Juan Lang : crypt32: Remove wrong test and parameter check.
by Alexandre Julliard
29 May '07
29 May '07
Module: wine Branch: master Commit: fa10a299308605a0256c6d590beb1b440ec632f9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa10a299308605a0256c6d590…
Author: Juan Lang <juan.lang(a)gmail.com> Date: Thu May 24 16:43:49 2007 -0700 crypt32: Remove wrong test and parameter check. --- dlls/crypt32/store.c | 6 ------ dlls/crypt32/tests/store.c | 28 ---------------------------- 2 files changed, 0 insertions(+), 34 deletions(-) diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c index 13ac320..30143fe 100644 --- a/dlls/crypt32/store.c +++ b/dlls/crypt32/store.c @@ -1920,12 +1920,6 @@ static PWINECRYPT_CERTSTORE CRYPT_FileNameOpenStoreW(HCRYPTPROV hCryptProv, SetLastError(ERROR_PATH_NOT_FOUND); return NULL; } - if (!(dwFlags & (CERT_FILE_STORE_COMMIT_ENABLE_FLAG | - CERT_STORE_READONLY_FLAG))) - { - SetLastError(ERROR_FILE_NOT_FOUND); - return NULL; - } access = GENERIC_READ; if (dwFlags & CERT_FILE_STORE_COMMIT_ENABLE_FLAG) diff --git a/dlls/crypt32/tests/store.c b/dlls/crypt32/tests/store.c index d00adb4..52cf965 100644 --- a/dlls/crypt32/tests/store.c +++ b/dlls/crypt32/tests/store.c @@ -1230,34 +1230,6 @@ static void testFileNameStore(void) checkFileStoreFailure(filename, 0, CERT_FILE_STORE_COMMIT_ENABLE_FLAG | CERT_STORE_READONLY_FLAG, E_INVALIDARG); - /* Without an encoding type, these all fail */ - checkFileStoreFailure(filename, 0, 0, ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, 0, CERT_STORE_OPEN_EXISTING_FLAG, - ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, 0, CERT_STORE_CREATE_NEW_FLAG, - ERROR_FILE_NOT_FOUND); - /* Without a message encoding type, these still fail */ - checkFileStoreFailure(filename, X509_ASN_ENCODING, 0, ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, X509_ASN_ENCODING, - CERT_STORE_OPEN_EXISTING_FLAG, ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, X509_ASN_ENCODING, - CERT_STORE_CREATE_NEW_FLAG, ERROR_FILE_NOT_FOUND); - /* Without a cert encoding type, they still fail */ - checkFileStoreFailure(filename, PKCS_7_ASN_ENCODING, 0, - ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, PKCS_7_ASN_ENCODING, - CERT_STORE_OPEN_EXISTING_FLAG, ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, PKCS_7_ASN_ENCODING, - CERT_STORE_CREATE_NEW_FLAG, ERROR_FILE_NOT_FOUND); - /* With both a message and cert encoding type, but without commit enabled, - * they still fail - */ - checkFileStoreFailure(filename, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, 0, - ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, - CERT_STORE_OPEN_EXISTING_FLAG, ERROR_FILE_NOT_FOUND); - checkFileStoreFailure(filename, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, - CERT_STORE_CREATE_NEW_FLAG, ERROR_FILE_NOT_FOUND); /* In all of the following tests, the encoding type seems to be ignored */ if (initFileFromData(filename, bigCert, sizeof(bigCert)))
1
0
0
0
appdb/include appData.php
by WineHQ
28 May '07
28 May '07
ChangeSet ID: 31145 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/05/28 16:44:14 Modified files: include : appData.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Speedup appData::objectGetEntries() Patch:
http://cvs.winehq.org/patch.py?id=31145
Old revision New revision Changes Path 1.19 1.20 +26 -7 appdb/include/appData.php Index: appdb/include/appData.php diff -u -p appdb/include/appData.php:1.19 appdb/include/appData.php:1.20 --- appdb/include/appData.php:1.19 28 May 2007 21:44:14 -0000 +++ appdb/include/appData.php 28 May 2007 21:44:14 -0000 @@ -332,13 +332,30 @@ class appData } } else { - $sQuery = "SELECT DISTINCT appData.* FROM appData, appFamily, appVersion - WHERE - appVersion.appId = appFamily.appId + if($iStart || $iRows) + $sLimit = " LIMIT ?,?"; + + $sQuery = "(SELECT DISTINCT appData.* FROM appData, + appFamily, appVersion WHERE + appFamily.appId = appVersion.appId AND ( appData.appId = appFamily.appId - OR + ) + AND + appVersion.queued = 'false' + AND + appFamily.queued = 'false' + AND + appData.queued = '?' + AND + appData.type = '?'$sLimit) UNION + ( + SELECT DISTINCT appData.* FROM appData, + appFamily, appVersion WHERE + appFamily.appId = appVersion.appId + AND + ( appData.versionId = appVersion.versionId ) AND @@ -348,17 +365,19 @@ class appData AND appData.queued = '?' AND - appData.type = '?'"; + appData.type = '?'$sLimit)"; if(!$iRows && !$iStart) { - $hResult = query_parameters($sQuery, $bQueued ? "true" : "false", $sType); + $hResult = query_parameters($sQuery, $bQueued ? "true" : "false", $sType, + $bQueued ? "true" : "false", $sType); } else { if(!$iRows) $iRows = appData::objectGetEntriesCount($bQueued ? "true" : "false", $bRejected, $sType); - $sQuery .= " LIMIT ?,?"; $hResult = query_parameters($sQuery, $bQueued ? "true" : "false", $sType, + $iStart, $iRows, + $bQueued ? "true" : "false", $sType, $iStart, $iRows); } }
1
0
0
0
appdb/include appData.php
by WineHQ
28 May '07
28 May '07
ChangeSet ID: 31144 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/05/28 15:10:49 Modified files: include : appData.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Speedup appData::objectGetEntriesCount() when selecting un-queued entries or we are an admin. Patch:
http://cvs.winehq.org/patch.py?id=31144
Old revision New revision Changes Path 1.18 1.19 +26 -16 appdb/include/appData.php Index: appdb/include/appData.php diff -u -p appdb/include/appData.php:1.18 appdb/include/appData.php:1.19 --- appdb/include/appData.php:1.18 28 May 2007 20:10:49 -0000 +++ appdb/include/appData.php 28 May 2007 20:10:49 -0000 @@ -203,45 +203,55 @@ class appData $sQuery .= " AND type = '?'"; $hResult = query_parameters($sQuery, $_SESSION['current']->iUserId, $sType); - } else { + } else + { $hResult = query_parameters($sQuery, $_SESSION['current']->iUserId); } } else { - $sQuery = "SELECT COUNT(DISTINCT appData.id) as count FROM appData, + if($sQueued == "true" || $sQueued == "false") + $sAppDataQueued = " AND appData.queued = '$sQueued'"; + + if($sType) + $sSelectType = " AND type = '?'"; + + $sQuery = "(SELECT COUNT(DISTINCT appData.id) as count FROM appData, appFamily, appVersion WHERE appFamily.appId = appVersion.appId AND ( appData.appId = appFamily.appId - OR + ) + AND + appVersion.queued = 'false' + AND + appFamily.queued = 'false'$sAppDataQueued$sSelectType) UNION + ( + SELECT COUNT(DISTINCT appData.id) as count FROM appData, + appFamily, appVersion WHERE + appFamily.appId = appVersion.appId + AND + ( appData.versionId = appVersion.versionId ) AND appVersion.queued = 'false' AND - appFamily.queued = 'false'"; - - if($sQueued == "true" || $sQueued == "false") - $sQuery .= " AND appData.queued = '$sQueued'"; - + appFamily.queued = 'false'$sAppDataQueued$sSelectType)"; if($sType) - { - $sQuery .= " AND type = '?'"; - $hResult = query_parameters($sQuery, $sType); - } else + $hResult = query_parameters($sQuery, $sType, $sType); + else $hResult = query_parameters($sQuery); } if(!$hResult) return FALSE; - if(!$oRow = mysql_fetch_object($hResult)) - return FALSE; - - return $oRow->count; + for($iCount = 0; $oRow = mysql_fetch_object($hResult);) + $iCount += $oRow->count; + return $iCount; } function objectGetHeader($sType)
1
0
0
0
lostwages/ news/2007052601.xml wwn/wn20070526_ ...
by WineHQ
27 May '07
27 May '07
ChangeSet ID: 31143 CVSROOT: /opt/cvs-commit Module name: lostwages Changes by: wineowner(a)winehq.org 2007/05/27 00:08:46 Added files: news : 2007052601.xml wwn : wn20070526_332.xml Log message: WWN #332 Patch:
http://cvs.winehq.org/patch.py?id=31143
Old revision New revision Changes Path Added 1.1 +0 -0 lostwages/news/2007052601.xml Added 1.1 +0 -0 lostwages/wwn/wn20070526_332.xml
1
0
0
0
← Newer
1
...
10
11
12
13
14
15
16
...
72
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
Results per page:
10
25
50
100
200