I've been trying to solve some issues with MS Media Player
the Favorite menu doesn't appear correctly
it's an owner drawn menu, and the bug (a huge menu being displayed)
comes from bogus values used while painting
I tried to investigate it a bit, and I must confess I'm quite puzzled
by the outcome:
- from a regression point of view, but has been introduced here
http://cvs.winehq.com/patch.py?root=/opt/cvs-commit&logs=/opt/cvs-commit/CVSROOT/winecommitlog&id=970458426348898677621037
- I've had a look at the patch but didn't find anything wrong (except
for the attached patch, but it doesn't help)
- running the program with -debugmsg +relay no longer displays the
issue (in fact, turning relay debugging only for channel advapi32 
also solves the problem)
- looked at function signatures (WINAPI mismatch), but didn't help 
either

someone's got an idea where to look for ?

diff -u -r1.16 reg.c
--- dlls/ntdll/reg.c    2000/10/02 03:47:00     1.16
+++ dlls/ntdll/reg.c    2000/10/26 19:42:16
@@ -374,7 +377,7 @@
            {
              PKEY_VALUE_PARTIAL_INFORMATION kbi = KeyInformation;

-             *ResultLength = sizeof(KEY_VALUE_PARTIAL_INFORMATION) - sizeof(WCHAR) + 
req->len;
+             *ResultLength = sizeof(KEY_VALUE_PARTIAL_INFORMATION) - sizeof(UCHAR) + 
+req->len;

              if (*ResultLength > Length) return STATUS_BUFFER_TOO_SMALL;

-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle


Reply via email to