Module: wine
Branch: master
Commit: 118f3a6592887bc662e7a3204d41b4443f8fcd01
URL: http://source.winehq.org/git/wine.git/?a=commit;h=118f3a6592887bc662e7a3204…
Author: Jason Edmeades <jason.edmeades(a)googlemail.com>
Date: Tue Sep 11 21:43:04 2007 +0100
cmd.exe: Allow = and , to be delimiters.
---
programs/cmd/batch.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/programs/cmd/batch.c b/programs/cmd/batch.c
index 1e60848..37eafb1 100644
--- a/programs/cmd/batch.c
+++ b/programs/cmd/batch.c
@@ -134,7 +134,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
/*******************************************************************
* WCMD_parameter - extract a parameter from a command line.
*
- * Returns the 'n'th space-delimited parameter on the command line (zero-based).
+ * Returns the 'n'th delimited parameter on the command line (zero-based).
* Parameter is in static storage overwritten on the next call.
* Parameters in quotes (and brackets) are handled.
* Also returns a pointer to the location of the parameter in the command line.
@@ -150,7 +150,7 @@ WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where) {
p = param;
while (TRUE) {
switch (*s) {
- case ' ':
+ case ' ': /* Skip leading spaces */
s++;
break;
case '"':
@@ -176,15 +176,20 @@ WCHAR *WCMD_parameter (WCHAR *s, int n, WCHAR **where) {
default:
/* Only return where if it is for the right parameter */
if (where != NULL && i==n) *where = s;
- while ((*s != '\0') && (*s != ' ')) {
+ while ((*s != '\0') && (*s != ' ') && (*s != ',') && (*s != '=')) {
*p++ = *s++;
}
- if (i == n) {
+ if (i == n && (p!=param)) {
*p = '\0';
return param;
}
+ /* Skip double delimiters, eg. dir a.a,,,,,b.b */
+ if (p != param) {
param[0] = '\0';
i++;
+ } else {
+ s++; /* Skip delimter */
+ }
p = param;
}
}
Module: wine
Branch: master
Commit: 9ef5231566620e151c33c88b78cebf2ebc535d55
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9ef5231566620e151c33c88b7…
Author: Stefan Dösinger <stefandoesinger(a)gmx.at>
Date: Fri Aug 31 20:40:00 2007 +0200
wined3d: Disable W11V11U10 and A2W10V10U10.
---
dlls/wined3d/directx.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 774bf38..ce2c6cf 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1688,7 +1688,8 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
return WINED3D_OK;
/*****
- * Not supported for now: Bump mapping formats
+ * Not supported everywhere(depends on GL_ATI_envmap_bumpmap or
+ * GL_NV_texture_shader), but advertized to make apps happy.
* Enable some because games often fail when they are not available
* and are still playable even without bump mapping
*/
@@ -1697,11 +1698,19 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
case WINED3DFMT_L6V5U5:
case WINED3DFMT_X8L8V8U8:
case WINED3DFMT_Q8W8V8U8:
- case WINED3DFMT_W11V11U10:
- case WINED3DFMT_A2W10V10U10:
WARN_(d3d_caps)("[Not supported, but pretended to do]\n");
return WINED3D_OK;
+ /* Those are not advertized by the nvidia windows driver, and not
+ * supported natively by GL_NV_texture_shader or GL_ATI_envmap_bumpmap.
+ * WINED3DFMT_A2W10V10U10 could be loaded into shaders using the unsigned
+ * ARGB format if needed
+ */
+ case WINED3DFMT_W11V11U10:
+ case WINED3DFMT_A2W10V10U10:
+ WARN_(d3d_caps)("[FAILED]\n");
+ return WINED3DERR_NOTAVAILABLE;
+
/*****
* DXTN Formats: Handled above
* WINED3DFMT_DXT1