Re: kernel32: add a test for CreateFileA() (try 3)

2010-07-26 Thread Andrew Nguyen
On Tue, Jul 27, 2010 at 12:53 AM, Austin English wrote: > Addressing Nikolay and Dmitry's comments. > > Passed wtb: > https://testbot.winehq.org/JobDetails.pl?Key=3947 > > -- > -Austin > > > You forgot to attach the patch.

Re: dmusic: remove unused variable (try 2)

2010-07-26 Thread Andrew Nguyen
On Tue, Jul 27, 2010 at 12:59 AM, Austin English wrote: > -- > -Austin > > > > The source file seems to use tabs for indentation, so your patch should do the same.

Re: ws2_32, WS2_send: Avoid error if total bytes sent is 0

2010-07-26 Thread Mike Kaplinskiy
On Mon, Jul 26, 2010 at 3:05 PM, Wolfgang Schwotzer wrote: > This fixes bug #19397 > > > > I don't think that's the right place for the fix. You should probably put it in WS2_sendto. Also could you add some tests to verify that this is the behavior for all protocols, not just IrDA? Mike.

Re: ntdll: Use IsEqualGUID instead of memcmp to compare GUIDs.

2010-07-26 Thread Octavian Voicu
On Tue, Jul 27, 2010 at 2:00 AM, Michael Stefaniuc wrote: > -  ok(memcmp(&guid, &IID_Endianess, sizeof(guid)) == 0, "Endianess broken\n"); > +  ok(!IsEqualGUID(&guid, &IID_Endianess), "Endianess broken\n"); memcmp returns 0 when there is a match, so you should probably use IsEqualGUID without the

d3dx9: D3DXCreateMeshFVF and ID3DXMesh... let the criticism begin

2010-07-26 Thread Misha Koshelev
Dear All: I have worked hard today with Henri on my D3DXCreateSphere patch and appreciate all his help (and all of your help and patience with me and my inability to use email programs and IRC programs ;) ). I am now moving on to implementing D3DXCreateMeshFVF and ID3DXMesh so that we can actuall

Re: ntdll: Use IsEqualGUID instead of memcmp to compare GUIDs.

2010-07-26 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3928 Your paranoid android.

d3dx9: D3DXCreateMeshFVF and ID3DXMesh... let the criticism begin

2010-07-26 Thread Misha Koshelev
Sorry to do this again, but per: http://www.winehq.org/pipermail/wine-devel/2010-July/date.html#start it's been two hours and this has still not made it to the list again. I am sending attachments as a link, which seems to work: http://bugs.winehq.org/attachment.cgi?id=29848 I will appreciate al

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Misha Koshelev
On Tue, 2010-07-27 at 05:56 +0300, Octavian Voicu wrote: > On Tue, Jul 27, 2010 at 5:04 AM, Misha Koshelev wrote: > > Linking same file in test and main dll: I am not aware of a precedent for > > this but if there is one of course I would be glad to be shown otherwise. > > On second thought, not

Re: [4/5] urlmon: Implemented IUri_GetPort

2010-07-26 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3925 Your paranoid android.

Re: [5/5] urlmon/tests: Added some more test URIs

2010-07-26 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3926 Your paranoid android.

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Octavian Voicu
On Tue, Jul 27, 2010 at 5:04 AM, Misha Koshelev wrote: > Linking same file in test and main dll: I am not aware of a precedent for > this but if there is one of course I would be glad to be shown otherwise. On second thought, not sure if it is worth it anyway, there is probably not that much to s

Re: [2/5] urlmon/tests: Restructured invalid URI tests plus added more test data

2010-07-26 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3924 Your paranoid android.

Re: ddraw: Ensure fullscreen size of fullscreen windows

2010-07-26 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3921 Your paranoid android.

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Misha Koshelev
Ok I am very very sorry email is clearly not my forte. Linking same file in test and main dll: I am not aware of a precedent for this but if there is one of course I would be glad to be shown otherwise. Second comment: please pardon if I am misunderstanding but how is what you suggest not simply

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Misha Koshelev
Sorry mobile gmail for android does not allow bottom post. Maybe someone can suggest better way to reply. Code sharing between tests and dll: I honestly dont know of a good way but I would be very surprised if something like linking the same fil On Jul 26, 2010 8:40 PM, "Octavian Voicu" wrote:

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Octavian Voicu
On Tue, Jul 27, 2010 at 4:15 AM, Misha Koshelev wrote: > Why do you ask? > > Are you aware of a good way to share code between tests and the actual > function? That's why I was asking, as I suppose you can't use functions from the test in the implementation, nor have internal functions used in t

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Misha Koshelev
> On Tue, Jul 27, 2010 at 1:30 AM, Misha Koshelev wrote: > > I have spent quite a bit of time with Henri on IRC re this patch (thank you > > so much) and it now has his blessing. > > > > Hopefully everyone else's as well :) > > Looks nice, but I have a question. > > When you're going to actuall

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 5)

2010-07-26 Thread Octavian Voicu
On Tue, Jul 27, 2010 at 1:30 AM, Misha Koshelev wrote: > I have spent quite a bit of time with Henri on IRC re this patch (thank you > so much) and it now has his blessing. > > Hopefully everyone else's as well :) Looks nice, but I have a question. When you're going to actually implement D3DXCr

Re: [PATCH 07/11] d3d10: Implement D3D10GetInputAndOutputSignatureBlob().

2010-07-26 Thread Henri Verbeet
2010/7/26 Rico Schüller : > +/* 32 (DXBC header) + 2 * (1 * 4 (chunk index) + 2 * 4 (chunk header)) + > data_size (chunk data) */ I'm probably missing something here, but: - I think that should be "2 * 4 (chunk index) + 2 * 4 (chunk header)" -> 48? - Aligning chunks on 16 byte / 128 bits

Re: [PATCH 05/11] d3d10: Implement D3D10GetInputSignatureBlob().

2010-07-26 Thread Henri Verbeet
2010/7/26 Rico Schüller : > +static HRESULT shader_singnature_handler(const char *data, DWORD data_size, > DWORD tag, void *ctx) That's not how you write "signature". > +IUnknown_Release((IUnknown *)object); Is that cast needed?

Re: [PATCH 02/11] d3d10: Implement D3D10CreateBlob().

2010-07-26 Thread Henri Verbeet
2010/7/26 Rico Schüller : > +IUnknown_Release((IUnknown *)object); Since you'll probably resend this anyway based on Matteo's comment, I think just HeapFree() should do just as well. Also, I don't have a recent enough DX SDK to check at the moment, but if d3dcommon.h is generated by IDL, it

Re: [PATCH 01/11] d3d10: Add the ID3D10Blob interface.

2010-07-26 Thread Henri Verbeet
On 26 July 2010 21:21, Matteo Bruni wrote: > // ID3D10Blob has been made version-neutral and moved to d3dcommon.h. > Actually, since this comes up now, perhaps this is a good time to think about implementing d3dcompiler and d3dx10? I think we'll have to anyway at some point, and perhaps it's bette

Re: [2/6] richedit: EN_UPDATE notification is sent on WM_PAINT.

2010-07-26 Thread Dylan Smith
On Mon, Jul 26, 2010 at 3:26 PM, James Mckenzie wrote: > > Just a question, I don't see 1/6 in this sequence. Was it submitted > earlier? > > I sent it, but somehow it must have gotten lost along its digital path. It shows up in my gmail sent mail folder.

Re: [2/6] richedit: EN_UPDATE notification is sent on WM_PAINT.

2010-07-26 Thread James Mckenzie
Dylan: Just a question, I don't see 1/6 in this sequence. Was it submitted earlier? James -Original Message- >From: Dylan Smith >Sent: Jul 26, 2010 5:26 AM >To: wine-patches >Subject: [2/6] richedit: EN_UPDATE notification is sent on WM_PAINT. >

Re: [PATCH 01/11] d3d10: Add the ID3D10Blob interface.

2010-07-26 Thread Matteo Bruni
Hello Rico, from d3d10misc.h of latest DirectX SDK: // ID3D10Blob has been made version-neutral and moved to d3dcommon.h. d3dcommon.h seems to be an idl-generated header. From what I can see up to now, only your first patch is "wrong", the rest just needs to be fixed to include d3dcommon.h where

Re: [PATCH] libs/wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large

2010-07-26 Thread Austin English
On Mon, Jul 26, 2010 at 12:38 PM, Travis Athougies wrote: > Resending patch with proper line wrapping You forgot the patch :-). -- -Austin

Re: Patch #63746 revisited: Add const qualifer after version check

2010-07-26 Thread Octavian Voicu
On Mon, Jul 26, 2010 at 2:13 PM, Uwe Bonnes wrote: > +#else > +const SSL_METHOD *method; Also, you accidentally removed the "static" keyword instead of removing the "const" keyword for the #else branch (in both files). Octavian

Re: Patch #63746 revisited: Add const qualifer after version check

2010-07-26 Thread Octavian Voicu
On Mon, Jul 26, 2010 at 2:13 PM, Uwe Bonnes wrote: > -static SSL_METHOD *meth; > +#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER> 0x100) > +static const SSL_METHOD *meth; > +#else > +const SSL_METHOD *method; There's a typo here, last line should declare meth not method. Octa

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Henri Verbeet
On 26 July 2010 17:08, Michael Stefaniuc wrote: > Works for me with the gcc 4.4.4 on F13 but it breaks with the old 3.1.1 > gcc used by the old Smatch. > Well, it works with 4.4.3 on Gentoo for me as well... :-) just saying that you don't necessarily have to try very hard to break it.

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Michael Stefaniuc
Henri Verbeet wrote: > On 26 July 2010 10:00, Alexandre Julliard wrote: >> Octavian Voicu writes: >> >>> On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: -static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags that can be set by user */ +static const D

Re: [PATCH 2/7] msvcp90/tests: Added allocator tests (try3)

2010-07-26 Thread Alexandre Julliard
Piotr Caban writes: > try3: Don't skip all tests on 64bit You should be able to run all tests on 64-bit, which would also have the advantage of making sure the function prototypes are correct (since the call macros on i386 prevent checking). -- Alexandre Julliard julli...@winehq.org

Re: How to handle Wrapper(?) Dlls

2010-07-26 Thread Henri Verbeet
On 26 July 2010 15:58, Uwe Bonnes wrote: > Wrapper DLLs, where possible, are much more favorable. They don't require > server calls for each function call. I'd imagine proper USB support wouldn't either. That said, I don't know for sure if that's the real reason either, it could also be a specific

Re: mshtml: Improve status messages sent to IOleInPlaceFrame

2010-07-26 Thread Jacek Caban
Hi Alexander, On 7/26/10 11:36 AM, Alexander Nicolaysen Sørnes wrote: In preparation for adding a status bar to Wine's IE -static const WCHAR wszDone[] = {'D','o','n','e',0}; +static WCHAR wszDone[40] = { 0 }; + +if(!wszDone[0]) +LoadStringW

Re: How to handle Wrapper(?) Dlls

2010-07-26 Thread Uwe Bonnes
> "Henri" == Henri Verbeet writes: Henri> On 26 July 2010 13:28, Uwe Bonnes Henri> wrote: >> there are several hardware related libraries, like libusb and >> libftd2xx which exist on Windows and at least linux. I tried already >> to add libftd2xx, but with silent reject.

Re: How to handle Wrapper(?) Dlls

2010-07-26 Thread Henri Verbeet
On 26 July 2010 13:28, Uwe Bonnes wrote: > there are several hardware related libraries, like libusb and libftd2xx > which exist on Windows and at least linux. I tried already to add libftd2xx, > but with silent reject. > > What is the preferred way to handle it? I feel including in wine is > favo

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Henri Verbeet
On 26 July 2010 10:00, Alexandre Julliard wrote: > Octavian Voicu writes: > >> On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: >>> -    static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* >>> flags that can be set by user */ >>> +    static const DWORD user_flags = DCX_PARENTC

Re: [PATCH 1/1] d3dx9: Complete test for D3DXCreateSphere. (try 4)

2010-07-26 Thread Henri Verbeet
On 26 July 2010 01:20, Misha Koshelev wrote: > I kept some macros in, although I know you guys don't like that too much. > > Like sphere_vertex. I think it makes the code clearer. compare_vertex and compare_face are probably ok, but there's no reason sphere_vertex can't be an inline function. Note

Re: [PATCH 2/3] d3dx9: Return D3DERR_INVALIDCALL in D3DXLoadSurfaceFromMemory if pDestRect is invalid

2010-07-26 Thread Henri Verbeet
2010/7/25 : > +if(pDestRect->left > pDestRect->right || pDestRect->top > > pDestRect->bottom) return D3DERR_INVALIDCALL; > +if(pDestRect->left > surfdesc.Width || pDestRect->right > > surfdesc.Width) return D3DERR_INVALIDCALL; If left <= right <= Width, left can never be > Width

Re: [PATCH 1/3] d3dx9: Move pixel sampling and recombination in copy_simple_data to separate helper functions

2010-07-26 Thread Henri Verbeet
On 25 July 2010 19:15, wrote: > +typedef struct > { > +CONST PixelFormatDesc *srcformat; > +CONST PixelFormatDesc *destformat; > DWORD srcshift[4], destshift[4]; > DWORD srcmask[4], destmask[4]; > BOOL process_channel[4]; > -DWORD channels[4]; > -DWORD channelmask

Re: d3dx9: general direction/goal - speed, code "prettiness", etc?

2010-07-26 Thread Henri Verbeet
On 24 July 2010 17:33, Misha Koshelev wrote: > Thus, I thought I'd pose the question - as to d3dx9, is our goal: > a) speed > b) code "prettiness" > c) something else? > > I am tempted to think it is (a), but wanted to double check. > In the general case, maintainability. That includes things like

How to handle Wrapper(?) Dlls

2010-07-26 Thread Uwe Bonnes
Hello, there are several hardware related libraries, like libusb and libftd2xx which exist on Windows and at least linux. I tried already to add libftd2xx, but with silent reject. What is the preferred way to handle it? I feel including in wine is favorable, as this gives a good user impression,

Re: [3/3] msi/tests: Skip tests if UAC is enabled and the process is not running elevated.

2010-07-26 Thread testbot
Hi, While running your changed tests on Windows, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check? Full results can be found at http://testbot.winehq.org/JobDetails.pl?Key=3902 Your paranoid android.

Re: [2/4] tools: enable .lnk thumbnailing in Gnome

2010-07-26 Thread Alexandre Julliard
Damjan Jovanovic writes: > diff --git a/tools/Makefile.in b/tools/Makefile.in > index a9ec324..a0c9c99 100644 > --- a/tools/Makefile.in > +++ b/tools/Makefile.in > @@ -75,6 +75,8 @@ install install-lib:: wine.inf $(INSTALLDIRS) > $(INSTALL_DATA) $(SRCDIR)/l_intl.nls > $(DESTDIR)$(datadir)/

Re: [PATCH 3/5] shell32: Initial implementation of IShellItemArray with SHCreateShellItemArray.

2010-07-26 Thread Alexandre Julliard
David Hedberg writes: > --- > dlls/shell32/Makefile.in |1 + > dlls/shell32/shell32.spec |1 + > dlls/shell32/shellitemarray.c | 270 > > dlls/shell32/tests/shlfolder.c | 132 +++ > include/shobjidl.idl |

Re: [PATCH 2/7] msvcp90/tests: Added allocator tests (try2)

2010-07-26 Thread Alexandre Julliard
Piotr Caban writes: > @@ -22,6 +22,13 @@ > #include > #include "wine/test.h" > > +#ifndef __i386__ > +/* Skip these tests for non x86 platforms */ > +START_TEST(misc) > +{ > +} > +#else There's no reason not to run the tests on 64-bit, as long as the functions exist there, they should be te

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Alexandre Julliard
Octavian Voicu writes: > On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: >> -    static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags >> that can be set by user */ >> +    static const DWORD user_flags = DCX_PARENTCLIP | DCX_CLIPSIBLINGS | >> DCX_CLIPCHILDREN | DCX_WINDO