Re: Question about testing SHQueryValueExA in shlwapi/tests/shreg.c

2005-01-18 Thread Paul Vriens
On Mon, 2005-01-17 at 23:33, Mike Hearn wrote: > On Mon, 17 Jan 2005 23:05:59 +0100, Paul Vriens wrote: > > Wine and Win98 leave the buffer intact (the contents and thus size > > differ however) > > WinXPProf and W2KProf clear (so it seems) the buffer. > > That's why it's tested - MSDN is useful b

Re: Question about testing SHQueryValueExA in shlwapi/tests/shreg.c

2005-01-17 Thread Mike Hearn
On Mon, 17 Jan 2005 23:05:59 +0100, Paul Vriens wrote: > Wine and Win98 leave the buffer intact (the contents and thus size > differ however) > WinXPProf and W2KProf clear (so it seems) the buffer. That's why it's tested - MSDN is useful but not what we care about. You can guarantee if NT clears t

Question about testing SHQueryValueExA in shlwapi/tests/shreg.c

2005-01-17 Thread Paul Vriens
Hi, I'm trying to fix the tests in shlwapi/tests/shreg.c (or Wine for that matter). One thing that puzzles me in the current code is the checks done after we receive a ERROR_MORE_DATA when we pass a size smaller than the actual data. MSDN states: If the buffer specified by pvData parameter is n