Re: msvcrt: Add support for sprintf_s

2010-01-10 Thread Chris Robinson
This doesn't seem correct to me. According to MSDN, sprintf_s checks for valid formatting chars (in addition to the buffer and format arguments) and invokes an invalid parameter handler if something bad turns up. It then returns -1 with errno set to EINVAL if execution is allowed to continue. Ad

Re: advpack: Use GetModuleHandle instead of LoadLibrary.

2010-01-10 Thread James Hawkins
On Sun, Jan 10, 2010 at 12:57 PM, Paul Vriens wrote: > On 01/05/2010 11:50 AM, Paul Vriens wrote: >> >> On 01/05/2010 02:46 AM, James Hawkins wrote: >>> >>> --- >>> dlls/advpack/tests/advpack.c | 7 +-- >>> 1 files changed, 1 insertions(+), 6 deletions(-) >>> >> >> Hi James, >> >> Don't think t

Re: [2/4] avifil32/tests: Initial-test-data-and-simple-test-for-avifil32-depends

2010-01-10 Thread Julius Schwartzenberg
James McKenzie wrote: C++ type comments are not allowed. Of course, it was a stupid mistake of me. The whole comment wasn't relevant anymore. Please mark second and subsequent submissions with [Try #] in the message header. It keeps us from guessing which submission is the latest. There

Re: avifil32: Overwrite dwRate in the audiostream with the nBlockAlign from the wave header

2010-01-10 Thread James McKenzie
Julius Schwartzenberg wrote: > Paul Vriens wrote: >> Do any of these patches fix any of the tests? If so you should also >> change the tests by removing one or more todo_wine()'s. >> >> This could become tricky though if your tests patches are not >> committed before these ones. > > Yes, all the te

Re: [2/4] avifil32/tests: Initial-test-data-and-simple-test-for-avifil32-depends

2010-01-10 Thread James McKenzie
Julius Schwartzenberg wrote: > These are resents of last week which are cleaned up more and with > Detlef's patch on which they depend in front. > > While looking at avifile, I noticed some strange behaviour. Because > some fixes may seem strange, I felt a test suite was really necessary > to show

Re: advpack: Use GetModuleHandle instead of LoadLibrary.

2010-01-10 Thread Paul Vriens
On 01/05/2010 11:50 AM, Paul Vriens wrote: On 01/05/2010 02:46 AM, James Hawkins wrote: --- dlls/advpack/tests/advpack.c | 7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) Hi James, Don't think this works: advpack: 0 tests executed (0 marked as todo, 0 failures), 0 skipped. Hi

Re: dbghelp: merge dwarf code from ntdll/signal_x86_64.c

2010-01-10 Thread Eric Pouech
André Hentschel a écrit : thanks Eric Pouech for the reviews --- dlls/dbghelp/dwarf.c | 229 +- dlls/dbghelp/dwarf.h | 15 2 files changed, 204 insertions(+), 40 deletions(-) diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c index 4

Re: ntdll/tests: Fix a test failure on NT4

2010-01-10 Thread Paul Vriens
On 01/10/2010 06:00 PM, André Hentschel wrote: Hi Paul, sorry didnt see your patch, it was not my purpose to compete for that. I also had broken() in mind, but using http://www.winehq.org/pipermail/wine-devel/2008-October/069721.html i am not sure. The 'problem' with broken() is that it just

Re: ntdll/tests: Fix a test failure on NT4

2010-01-10 Thread André Hentschel
Paul Vriens schrieb: > On 01/10/2010 05:44 PM, André Hentschel wrote: >> --- >> dlls/ntdll/tests/om.c |3 ++- >> 1 files changed, 2 insertions(+), 1 deletions(-) >> >> diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c >> index 1bab21d..e351813 100644 >> --- a/dlls/ntdll/tests/om.c >

Re: Resent of [1/4] and [2/4] from avifil32/test serie

2010-01-10 Thread Paul Vriens
On 01/10/2010 05:35 PM, Julius Schwartzenberg wrote: First of all, my apologies for all the junk. I didn't fully understand how the mail moderation exactly worked and made some wrong guesses. I'm going to use git send-email now as Henri suggested me, to resent two patches from the serie as repli

Re: avifil32: Overwrite dwRate in the audiostream with the nBlockAlign from the wave header

2010-01-10 Thread Julius Schwartzenberg
Paul Vriens wrote: Do any of these patches fix any of the tests? If so you should also change the tests by removing one or more todo_wine()'s. This could become tricky though if your tests patches are not committed before these ones. Yes, all the tests work properly with my patches. I had un

Re: ntdll/tests: Fix a test failure on NT4

2010-01-10 Thread Paul Vriens
On 01/10/2010 05:44 PM, André Hentschel wrote: --- dlls/ntdll/tests/om.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/tests/om.c b/dlls/ntdll/tests/om.c index 1bab21d..e351813 100644 --- a/dlls/ntdll/tests/om.c +++ b/dlls/ntdll/tests/om.c @@ -677,7 +677

Re: Sorry!! Please drop the previous mails ^^^

2010-01-10 Thread Julius Schwartzenberg
Henri Verbeet wrote: 2010/1/10 Julius Schwartzenberg : My apologies to who'll read this. I found out a bit late my mailclient sucked and used the wrong 'from' address. I've resent all my patches with the proper address now, so all other mails from me may be dropped. I'm not sure what was wrong

Re: d3drm: The input quaternions are not changed when calling D3DRMQuaternionSlerp

2010-01-10 Thread Henri Verbeet
2010/1/10 David Adam : > + > +/* Test to show that the input quaternions are not changed */ > +expect_quat(q1,q1final); > +expect_quat(q2,q2final); > + You have some trailing spaces here.

Re: Sorry!! Please drop the previous mails ^^^

2010-01-10 Thread Henri Verbeet
2010/1/10 Julius Schwartzenberg : > My apologies to who'll read this. I found out a bit late my mailclient > sucked and used the wrong 'from' address. I've resent all my patches with > the proper address now, so all other mails from me may be dropped. > I'm not sure what was wrong with it? Afaik th

Re: [1/4] avifil32/tests: Add initial tests

2010-01-10 Thread Henri Verbeet
2010/1/10 Julius Schwartzenberg : > This is Detlef's patch from June 2008 with just the import changed from > "vfw32" to "avifil32" to work around bug 14085. > > http://www.winehq.org/pipermail/wine-patches/2008-June/056310.html > You should add a proper "From: " line to the patch when submitting p

Re: [PATCH] shell32: handle bad menu handle (Coverity)

2010-01-10 Thread Nikolay Sivov
On 1/10/2010 13:35, Paul Vriens wrote: Are you sure? It reads to me as being available up to XP-SP2/W2K3 but maybe removed or changed in newer versions. Anyway, we shouldn't ever believe MSDN as even their remark about needed shell32 version 6 or higher is not correct (see below) ;) I misr

Re: [PATCH] shell32: handle bad menu handle (Coverity)

2010-01-10 Thread Paul Vriens
On 01/09/2010 11:50 PM, Nikolay Sivov wrote: On 1/9/2010 19:37, Marcus Meissner wrote: +static void +test_shlmenu(void) { + HRESULT hres; + hres = Shell_MergeMenus (0, 0, 0x42, 0x4242, 0x424242, 0); + ok (hres == 0x4242, "expected 0x4242 but got %x\n", hres); + hres = Shell_MergeMenus ((HMENU)42

Re: avifil32: Overwrite dwRate in the audiostream with the nBlockAlign from the wave header

2010-01-10 Thread Paul Vriens
On 01/10/2010 03:18 AM, Julius Schwartzenberg wrote: I was stupid last week and sent patches in a serie that didn't actually depend on each other. I'm resending them properly now. All fixes are actually independent from each other. I started looking into some problems avifil32 had because Civili

Re: [2/4] avifil32/tests: Initial-test-data-and-simple-test-for-avifil32-depends

2010-01-10 Thread Paul Vriens
On 01/10/2010 03:15 AM, Julius Schwartzenberg wrote: +static void create_avi_file(const COMMON_AVI_HEADERS *cah, char *filename) +{ +HANDLE hFile; +DWORD written; + +hFile = CreateFile(filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + +ok(hFile != I