ChangeSet ID: 31239
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/07/05 16:49:17
Modified files:
include : filter.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Add a suggestion to users that are receiving filter errors to clear out their cookies.
Patch: http://cvs.winehq.org/patch.py?id=31239
Old revision New revision Changes Path
1.14 1.15 +10 -4 appdb/include/filter.php
Index: appdb/include/filter.php
diff -u -p appdb/include/filter.php:1.14 appdb/include/filter.php:1.15
--- appdb/include/filter.php:1.14 5 Jul 2007 21:49:17 -0000
+++ appdb/include/filter.php 5 Jul 2007 21:49:17 -0000
@@ -20,6 +20,8 @@ function filter_perform_filtering()
function filter_gpc()
{
global $aClean;
+ $sErrorSuggestion = " Please try clearing out your cookies. If the problem continues ".
+ " please email ".APPDB_OWNER_EMAIL." with the error text.";
$aKeys = array_keys($_REQUEST);
for($i=0; $i < sizeof($aKeys); $i++)
@@ -61,13 +63,15 @@ function filter_gpc()
else if(empty($_REQUEST[$aKeys[$i]]))
$aClean[$aKeys[$i]] = 0;
else
- return "Fatal error: ".$aKeys[$i]." should be a numeric value.";
+ return "Fatal error: ".$aKeys[$i]." should be a numeric value. ".
+ $sErrorSuggestion;
break;
case "b": // boolean
if($_REQUEST[$aKeys[$i]]=="true" || $_REQUEST[$aKeys[$i]]=="false")
$aClean[$aKeys[$i]] = $_REQUEST[$aKeys[$i]];
else
- return "Fatal error: ".$aKeys[$i]." should be a boolean value.";
+ return "Fatal error: ".$aKeys[$i]." should be a boolean value. ".
+ $sErrorSuggestion;
break;
case "s": // string
switch($aKeys[$i][1])
@@ -85,10 +89,12 @@ function filter_gpc()
break;
case "a": // array
if(!is_array($_REQUEST[$aKeys[$i]]))
- return "Fatal error: ".$aKeys[$i]." should be an array.";
+ return "Fatal error: ".$aKeys[$i]." should be an array. ".
+ $sErrorSuggestion;
break;
default:
- return "Fatal error: type of variable ".$aKeys[$i]." is not recognized.";
+ return "Fatal error: type of variable ".$aKeys[$i]." is not recognized.".
+ $sErrorSuggestion;
break;
}
}
Module: wine
Branch: master
Commit: a3317a5c01a8c6ff0dff95498512a66837a56a8c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a3317a5c01a8c6ff0dff95498…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Thu Jul 5 16:10:30 2007 +0200
Assorted spelling fixes.
---
dlls/advapi32/tests/lsa.c | 2 +-
dlls/crypt32/tests/msg.c | 2 +-
dlls/ddraw/tests/dsurface.c | 2 +-
dlls/dsound/primary.c | 4 ++--
dlls/ntprint/ntprint.c | 2 +-
dlls/setupapi/tests/install.c | 2 +-
dlls/winealsa.drv/dsoutput.c | 10 +++++-----
include/basetsd.h | 2 +-
programs/cmd/builtins.c | 2 +-
programs/cmd/wcmdmain.c | 4 ++--
10 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c
index 575fc21..4035416 100644
--- a/dlls/advapi32/tests/lsa.c
+++ b/dlls/advapi32/tests/lsa.c
@@ -85,7 +85,7 @@ static void test_lsa(void)
status = pLsaQueryInformationPolicy(handle, PolicyAuditEventsInformation, (PVOID*)&audit_events_info);
if (status == STATUS_ACCESS_DENIED)
- skip("Not enought rights to retrieve PolicyAuditEventsInformation\n");
+ skip("Not enough rights to retrieve PolicyAuditEventsInformation\n");
else
ok(status == STATUS_SUCCESS, "LsaQueryInformationPolicy(PolicyAuditEventsInformation) failed, returned 0x%08x\n", status);
if (status == STATUS_SUCCESS) {
diff --git a/dlls/crypt32/tests/msg.c b/dlls/crypt32/tests/msg.c
index 16ab7f6..20b52ad 100644
--- a/dlls/crypt32/tests/msg.c
+++ b/dlls/crypt32/tests/msg.c
@@ -358,7 +358,7 @@ static void test_data_msg_update(void)
msg = CryptMsgOpenToEncode(PKCS_7_ASN_ENCODING, CMSG_DETACHED_FLAG,
CMSG_DATA, NULL, NULL, NULL);
- /* Dont appear to be able to update CMSG-DATA with non-final updates */
+ /* Doesn't appear to be able to update CMSG-DATA with non-final updates */
SetLastError(0xdeadbeef);
ret = CryptMsgUpdate(msg, NULL, 0, FALSE);
ok(!ret && GetLastError() == E_INVALIDARG,
diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c
index b0a2195..e999aeb 100644
--- a/dlls/ddraw/tests/dsurface.c
+++ b/dlls/ddraw/tests/dsurface.c
@@ -2315,7 +2315,7 @@ static void StructSizeTest(void)
union {
DDSURFACEDESC desc1;
DDSURFACEDESC2 desc2;
- char blob[1024]; /* To get a buch of writeable memory */
+ char blob[1024]; /* To get a bunch of writable memory */
} desc;
DDSURFACEDESC create;
HRESULT hr;
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index d8d7dc6..a89889c 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -48,7 +48,7 @@ static void DSOUND_RecalcPrimary(DirectSoundDevice *device)
* If DS_TIME_DEL is about 10 ms, 512 * nBlockAlign is roughly correct */
fraglen = 512 * nBlockAlign;
- /* Compensate for only being rougly accurate */
+ /* Compensate for only being roughly accurate */
if (device->pwfx->nSamplesPerSec <= 26000)
fraglen /= 2;
@@ -324,7 +324,7 @@ HRESULT DSOUND_PrimaryStop(DirectSoundDevice *device)
}
} else {
- /* dont call the wave system with the lock set */
+ /* don't call the wave system with the lock set */
LeaveCriticalSection(&(device->mixlock));
/* **** */
diff --git a/dlls/ntprint/ntprint.c b/dlls/ntprint/ntprint.c
index ece26ef..32a2c08 100644
--- a/dlls/ntprint/ntprint.c
+++ b/dlls/ntprint/ntprint.c
@@ -131,7 +131,7 @@ VOID WINAPI PSetupDestroyMonitorInfo(HANDLE monitorinfo)
* index [I] Nr. of the Monitorname to copy
* buffer [I] Target, that receive the Monitorname
* psize [IO] PTR to a DWORD that hold the size of the buffer and receive
- * the needed size, when the buffer is to small
+ * the needed size, when the buffer is too small
*
* RETURNS
* Success: TRUE
diff --git a/dlls/setupapi/tests/install.c b/dlls/setupapi/tests/install.c
index 124f831..3145ae4 100644
--- a/dlls/setupapi/tests/install.c
+++ b/dlls/setupapi/tests/install.c
@@ -43,7 +43,7 @@ static char CURR_DIR[MAX_PATH];
* occurs (e.g., unquoted inf file with spaces, registry keys are written but last error is 6). Also, on Win98 last error
* is set to ERROR_SUCCESS even if install fails (e.g., quoted inf file with spaces, no registry keys set, MessageBox with
* "Installation Error" displayed). Thus, we must use functional tests (e.g., is registry key created) to determine whether
- * or not installation occured.
+ * or not installation occurred.
* - On installation problems, a MessageBox() is displayed and a Beep() is issued. The MessageBox() is disabled with a
* CBT hook.
*/
diff --git a/dlls/winealsa.drv/dsoutput.c b/dlls/winealsa.drv/dsoutput.c
index e6958d3..c5ad141 100644
--- a/dlls/winealsa.drv/dsoutput.c
+++ b/dlls/winealsa.drv/dsoutput.c
@@ -328,7 +328,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo
{
/* **** */
LeaveCriticalSection(&This->pcm_crst);
- WARN("Can not open sound device: %s\n", snd_strerror(err));
+ WARN("Cannot open sound device: %s\n", snd_strerror(err));
return DSERR_GENERIC;
}
snd_pcm_drop(This->pcm);
@@ -339,7 +339,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo
{
/* **** */
LeaveCriticalSection(&This->pcm_crst);
- WARN("Can not open sound device: %s\n", snd_strerror(err));
+ WARN("Cannot open sound device: %s\n", snd_strerror(err));
return DSERR_BUFFERLOST;
}
}
@@ -353,7 +353,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo
if (err < 0) { WARN("Could not set format to %d bpp\n", pwfx->wBitsPerSample); goto err; }
/* Alsa's rate resampling is only used if the application specifically requests
- * a buffer at a certain frequency, else it is better to disable due to unwanted
+ * a buffer at a certain frequency, else it is better to disable it due to unwanted
* side effects, which may include: Less granular pointer, changing buffer sizes, etc
*/
#if SND_LIB_VERSION >= 0x010009
@@ -383,7 +383,7 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo
TRACE("Period size is: %lu\n", psize);
/* If period size is 'high', try to commit less
- * dmix needs at least 2 buffers to work succesfully but prefers 3
+ * dmix needs at least 2 buffers to work successfully but prefers 3
* however it seems to work ok if I just commit 2 1/2 buffers
*/
if (psize >= 512)
@@ -709,7 +709,7 @@ static HRESULT WINAPI IDsDriverImpl_CreateSoundBuffer(PIDSDRIVER iface,
err = SetFormat(*ippdsdb, pwfx, FALSE);
if (FAILED(err))
{
- WARN("Error occured: %08x\n", err);
+ WARN("Error occurred: %08x\n", err);
goto err;
}
diff --git a/include/basetsd.h b/include/basetsd.h
index dcdf8fa..7fba324 100644
--- a/include/basetsd.h
+++ b/include/basetsd.h
@@ -32,7 +32,7 @@ extern "C" {
* and pointer are 32-bit.
*
* Win64, however, will cause some problems when implemented under Unix.
- * Linux/{Alpha, Sparc64} and most (all?) other 64-bit Unices uses
+ * Linux/{Alpha, Sparc64} and most (all?) other 64-bit Unices use
* the LP64 type model where int is 32-bit and long and pointer are
* 64-bit. Win64 on the other hand uses the P64 (sometimes called LLP64)
* type model where int and long are 32 bit and pointer is 64-bit.
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 482d870..33e96c1 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -734,7 +734,7 @@ void WCMD_part_execute(CMD_LIST **cmdList, WCHAR *firstcmd, WCHAR *variable,
}
- /* If it didnt move the position, step to next command */
+ /* If it didn't move the position, step to next command */
if (curPosition == *cmdList) *cmdList = (*cmdList)->nextcommand;
/* Process any other parts of the command */
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 36b8612..247ee81 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -497,7 +497,7 @@ void WCMD_process_command (WCHAR *command, CMD_LIST **cmdList)
while ((p = strchrW(p, '%'))) {
i = *(p+1) - '0';
- /* Dont touch %% */
+ /* Don't touch %% */
if (*(p+1) == '%') {
p+=2;
@@ -1895,7 +1895,7 @@ void WCMD_DumpCommands(CMD_LIST *commands) {
*
* Either uses supplied input or
* Reads a file from the handle, and then...
- * Parse the text buffer, spliting into seperate commands
+ * Parse the text buffer, spliting into separate commands
* - unquoted && strings split 2 commands but the 2nd is flagged as
* following an &&
* - ( as the first character just ups the bracket depth