Module: appdb
Branch: master
Commit: d98e38e3059bab7c8d5eee20a7bf1248892e71ba
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=d98e38e3059bab7c8d5eee20…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Mon Jun 16 10:53:49 2008 +0200
browse apps: Allow filtering by Wine version
---
include/application.php | 2 ++
include/util.php | 28 +++++++++++++++++++---------
2 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/include/application.php b/include/application.php
index 44bc97b..6baeeaa 100644
--- a/include/application.php
+++ b/include/application.php
@@ -1031,8 +1031,10 @@ class Application {
}
$aLicenses = version::getLicenses();
+ $aWineVersions = get_bugzilla_versions();
$oFilter->AddFilterInfo('appVersion.rating', 'Rating', array(FILTER_EQUALS), FILTER_VALUES_ENUM, array('Platinum', 'Gold', 'Silver', 'Bronze', 'Garbage'));
+ $oFilter->AddFilterInfo('appVersion.ratingRelease', 'Tested Wine version', array(FILTER_EQUALS), FILTER_VALUES_ENUM, $aWineVersions);
$oFilter->AddFilterInfo('appFamily.catId', 'Category', array(FILTER_EQUALS), FILTER_VALUES_ENUM, $aCatIds, $aCatNames);
$oFilter->AddFilterInfo('appVersion.license', 'License', array(FILTER_EQUALS), FILTER_VALUES_ENUM, $aLicenses);
$oFilter->AddFilterInfo('appFamily.appName', 'Name', array(FILTER_CONTAINS, FILTER_STARTS_WITH, FILTER_ENDS_WITH), FILTER_VALUES_NORMAL);
diff --git a/include/util.php b/include/util.php
index 55af094..fe80fc3 100644
--- a/include/util.php
+++ b/include/util.php
@@ -163,28 +163,38 @@ function get_xml_tag ($file, $mode = null)
}
/* bugzilla functions */
-// $sVarname - name of the selection array that this function will output
-// this is the name to use to retrieve the selection on the form postback
-// $sSelectedValue - the currently selected entry
-// returns a string that contains the version list output
-function make_bugzilla_version_list($sVarname, $sSelectedValue)
-{
- $sStr = "";
+// Returns an array containg the Wine versions stored in our Bugzilla DB
+function get_bugzilla_versions()
+{
+ $aVersions = array();
$sTable = BUGZILLA_DB.".versions";
$sWhere = "WHERE product_id=".BUGZILLA_PRODUCT_ID;
$sQuery = "SELECT value FROM $sTable $sWhere ORDER BY id desc limit 6";
$hResult = query_bugzilladb($sQuery);
- if(!$hResult) return;
+ if(!$hResult) return $aVersions; // empty
// build the list of versions
- $aVersions = array();
while(list($sValue) = query_fetch_row($hResult))
{
$aVersions[] = $sValue;
}
+ return $aVersions;
+}
+
+// $sVarname - name of the selection array that this function will output
+// this is the name to use to retrieve the selection on the form postback
+// $sSelectedValue - the currently selected entry
+// returns a string that contains the version list output
+function make_bugzilla_version_list($sVarname, $sSelectedValue)
+{
+ $sStr = "";
+
+ // build the list of versions
+ $aVersions = get_bugzilla_versions();
+
// build the selection array
$sStr.= "<select name='$sVarname'>\n";
$sStr.= "<option value=\"\">Choose ...</option>\n";
Module: wine
Branch: master
Commit: 7857cf3dc781faeb5925bf6e18821a74cf960572
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7857cf3dc781faeb5925bf6e1…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Fri Jun 13 19:49:13 2008 +0200
A couple of spelling fixes.
---
dlls/comctl32/tests/listview.c | 2 +-
dlls/netapi32/tests/wksta.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index b4cad0c..6d66f22 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -1176,7 +1176,7 @@ static void test_multiselect(void)
selected_count = (int)SendMessage(hwnd, LVM_GETSELECTEDCOUNT, 0, 0);
- ok(selected_count == 1, "There should be only one selected item at the begining (is %d)\n",selected_count);
+ ok(selected_count == 1, "There should be only one selected item at the beginning (is %d)\n",selected_count);
/* Set SHIFT key pressed */
GetKeyboardState(kstate);
diff --git a/dlls/netapi32/tests/wksta.c b/dlls/netapi32/tests/wksta.c
index 01d0d6f..b4994f8 100644
--- a/dlls/netapi32/tests/wksta.c
+++ b/dlls/netapi32/tests/wksta.c
@@ -83,7 +83,7 @@ static void run_wkstausergetinfo_tests(void)
"NetWkstaUserGetInfo is unsuccessful\n");
ok(ui0 != NULL, "ui0 is NULL\n");
- /* This failure occured when I ran sshd as service and didn't authenticate
+ /* This failure occurred when I ran sshd as service and didn't authenticate
* Since the test dereferences ui0, the rest of this test is worthless
*/
if (!ui0)
Module: wine
Branch: master
Commit: 71c49aac584fbc2c8846530e76d19077ac2460fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=71c49aac584fbc2c8846530e7…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com>
Date: Fri Jun 13 13:22:54 2008 +0200
advapi32/tests: Fix a test on NT4.
---
dlls/advapi32/tests/service.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index 8ffe2e8..cd6d82c 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -145,7 +145,17 @@ static void test_open_svc(void)
GetServiceDisplayNameA(scm_handle, spooler, NULL, &displaysize);
/* Get the displayname */
GetServiceDisplayNameA(scm_handle, spooler, displayname, &displaysize);
- /* Try to open the service with this displayname */
+ /* Try to open the service with this displayname, unless the displayname equals
+ * the servicename as that would defeat the purpose of this test.
+ */
+ if (!lstrcmpi(spooler, displayname))
+ {
+ skip("displayname equals servicename\n");
+ CloseServiceHandle(scm_handle);
+ return;
+ }
+
+ SetLastError(0xdeadbeef);
svc_handle = OpenServiceA(scm_handle, displayname, GENERIC_READ);
ok(!svc_handle, "Expected failure\n");
ok(GetLastError() == ERROR_SERVICE_DOES_NOT_EXIST, "Expected ERROR_SERVICE_DOES_NOT_EXIST, got %d\n", GetLastError());