Module: wine
Branch: master
Commit: 74c07a141ec9d760f209cf6976e0406d4123ab6d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=74c07a141ec9d760f209cf697…
Author: Christian Costa <titan.costa(a)wanadoo.fr>
Date: Mon Apr 13 10:07:29 2009 +0200
quartz: Data may be incomplete at the end of file so do not assert if we have less data than expected.
---
dlls/quartz/mpegsplit.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/mpegsplit.c b/dlls/quartz/mpegsplit.c
index 373e537..14d01a1 100644
--- a/dlls/quartz/mpegsplit.c
+++ b/dlls/quartz/mpegsplit.c
@@ -176,7 +176,6 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, IMediaSample *pCurrentSample)
/* Find the next valid header.. it <SHOULD> be right here */
assert(parse_header(fbuf, &length, &This->position) == S_OK);
- assert(length == len || length + 4 == len);
IMediaSample_SetActualDataLength(pCurrentSample, length);
/* Queue the next sample */
Module: wine
Branch: master
Commit: 7788c8ed0d84be2537280c188fb07fb7118b3883
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7788c8ed0d84be2537280c188…
Author: Kai Blin <kai.blin(a)gmail.com>
Date: Mon Apr 13 22:39:39 2009 +0200
secur32: Work around ntlm_auth in Samba 3.0.28a being broken for cached credentials.
Samba 3.0.28a (as shipped with Ubuntu 8.04) seems to break when using
cached credentials backed by winbindd, returning a BH error in our test
if we still need to provide a password. Handle this and report a more
correct error.
---
dlls/secur32/ntlm.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/secur32/ntlm.c b/dlls/secur32/ntlm.c
index 7e44dd7..5e2450a 100644
--- a/dlls/secur32/ntlm.c
+++ b/dlls/secur32/ntlm.c
@@ -662,8 +662,20 @@ static SECURITY_STATUS SEC_ENTRY ntlm_InitializeSecurityContextW(
ret = SEC_E_NO_CREDENTIALS;
goto isc_end;
}
- else /* Just do a noop on the next run */
+ else
+ {
+ /* Some versions of Samba have a broken ntlm_auth that can
+ * return "BH" here. Catch this and abort. */
+ if(!strncmp(buffer, "BH", 2))
+ {
+ ERR("ntlm_auth replied 'BH'. This should not happen. "
+ "Please fix your ntlm_auth install and try again.\n");
+ ret = SEC_E_INTERNAL_ERROR;
+ goto isc_end;
+ }
+ /* Otherwise, just do a noop on the next run */
lstrcpynA(buffer, "OK", max_len-1);
+ }
}
else
{