Module: wine
Branch: master
Commit: 8de6c8b4a97389475a36b494bca037ac1c596ef9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8de6c8b4a97389475a36b494b…
Author: Maarten Lankhorst <maarten(a)codeweavers.com>
Date: Sat Nov 10 20:15:21 2007 +0100
dsound: Return primary_done when no mixing needs to be done instead of 0.
---
dlls/dsound/mixer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c
index 6598b03..7c570bc 100644
--- a/dlls/dsound/mixer.c
+++ b/dlls/dsound/mixer.c
@@ -590,7 +590,7 @@ static DWORD DSOUND_MixOne(IDirectSoundBufferImpl *dsb, DWORD writepos, DWORD mi
TRACE("primary_done=%d, mixlen (primary) = %i\n", primary_done, mixlen);
if (!mixlen)
- return 0;
+ return primary_done;
/* First try to mix to the end of the buffer if possible
* Theoretically it would allow for better optimization
Module: wine
Branch: master
Commit: 6d113489631fe4301fa194d1590146aaef673903
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d113489631fe4301fa194d15…
Author: Rob Shearman <rob(a)codeweavers.com>
Date: Sun Nov 11 12:28:18 2007 +0000
server: In set_user_object_info len is in bytes, not WCHARs.
---
server/winstation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/winstation.c b/server/winstation.c
index 5755ba9..55e72ab 100644
--- a/server/winstation.c
+++ b/server/winstation.c
@@ -596,7 +596,7 @@ DECL_HANDLER(set_user_object_info)
const WCHAR *ptr, *name = get_object_name( obj, &len );
/* if there is a backslash return the part of the name after it */
- if (name && (ptr = memchrW( name, '\\', len )))
+ if (name && (ptr = memchrW( name, '\\', len/sizeof(WCHAR) )))
{
len -= (ptr + 1 - name) * sizeof(WCHAR);
name = ptr + 1;