Module: wine
Branch: master
Commit: dfda3c4dc8f77336c9dfac9e70fe5c70816326ca
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfda3c4dc8f77336c9dfac9e7…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Tue Feb 19 11:37:09 2008 +0000
d3d9: Fix copy and paste error in reset_enum_callback.
vertex_desc.Pool should obviously be used in the
WINED3DRTYPE_VERTEXBUFFER case instead of index_desc.Pool.
---
dlls/d3d9/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 27940b4..7d63a10 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -283,7 +283,7 @@ static HRESULT WINAPI reset_enum_callback(IWineD3DResource *resource, void *data
case WINED3DRTYPE_VERTEXBUFFER:
IWineD3DVertexBuffer_GetDesc((IWineD3DVertexBuffer *) resource, &vertex_desc);
- pool = index_desc.Pool;
+ pool = vertex_desc.Pool;
break;
/* No need to check for textures. If there is a D3DPOOL_DEFAULT texture, there
Module: wine
Branch: master
Commit: c6c205a1d56bf78f026c1470df87640929b106d8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c6c205a1d56bf78f026c1470d…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Tue Feb 19 11:36:55 2008 +0000
avifil32: Simplify a comparison in AVIBuildFilterW.
---
dlls/avifil32/api.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/avifil32/api.c b/dlls/avifil32/api.c
index 7753e39..47947b5 100644
--- a/dlls/avifil32/api.c
+++ b/dlls/avifil32/api.c
@@ -1077,7 +1077,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
break; /* a new one */
}
- if (count - i == -1U) {
+ if (i == count + 1) {
/* it's a new CLSID */
/* FIXME: How do we get info's about read/write capabilities? */