Re: [PATCH 1/5] d3dx9_36: Implement D3DXFileCreate.

2012-10-22 Thread Henri Verbeet
On 22 October 2012 23:19, Christian Costa wrote: > Le 22/10/2012 22:55, Jacek Caban a écrit : >> Christian, there were some informal attempts to limit usage of stuff like >> LPVOID (and really any LP* types). It would be nice if you could avoid it >> in your patches. >> >> Jacek >> > I don't min

Re: [PATCH 4/5] d3dx9_36: Implement ID3DXFileEnumObjectImpl_GetChildren & ID3DXFileEnumObjectImpl_GetChild and add stubbed interface for ID3DXFileData.

2012-10-22 Thread Dmitry Timoshkov
Christian Costa wrote: > >> +object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, > >> sizeof(ID3DXFileDataImpl)); > > I'd use sizeof(*object), but that's probably only a matter of taste. > > > I use to do it this way but I don't have particular taste. If > sizeof(*object) is the Wine pre

Re: [PATCH 4/5] d3dx9_36: Implement ID3DXFileEnumObjectImpl_GetChildren & ID3DXFileEnumObjectImpl_GetChild and add stubbed interface for ID3DXFileData.

2012-10-22 Thread Christian Costa
Le 22/10/2012 22:29, Rico Schüller a écrit : On 22.10.2012 21:28, Christian Costa wrote: +static HRESULT WINAPI ID3DXFileDataImpl_GetType(ID3DXFileData *iface, GUID* guid) Spacing. msdn says "const GUID *pType" see http://msdn.microsoft.com/en-us/library/windows/desktop/bb205843%28v=vs.85%29.as

Re: [PATCH 1/5] d3dx9_36: Implement D3DXFileCreate.

2012-10-22 Thread Christian Costa
Le 22/10/2012 22:55, Jacek Caban a écrit : On 10/22/12 10:13 PM, Rico Schüller wrote: On 22.10.2012 21:27, Christian Costa wrote: +static HRESULT WINAPI ID3DXFileImpl_QueryInterface(ID3DXFile *iface, REFIID riid, LPVOID *ret_iface) +ID3DXFileImpl *This = impl_from_ID3DXFile(iface); +I

Re: winex11: Never use a surface for embedded windows, even for the parents. (Regression)

2012-10-22 Thread Christian Inci
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, this patch is causing CS:GO (Counter Strike: Global Offensive) to exit silently on startup. (Commit: 5fae649bdf14fb63b8d44984eda6edd1094a3314) - -Chris -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mo

Re: [PATCH 1/5] d3dx9_36: Implement D3DXFileCreate.

2012-10-22 Thread Rico Schüller
On 22.10.2012 22:55, Jacek Caban wrote: On 10/22/12 10:13 PM, Rico Schüller wrote: On 22.10.2012 21:27, Christian Costa wrote: +static HRESULT WINAPI ID3DXFileImpl_QueryInterface(ID3DXFile *iface, REFIID riid, LPVOID *ret_iface) +ID3DXFileImpl *This = impl_from_ID3DXFile(iface); +ID3D

Re: [PATCH 1/5] d3dx9_36: Implement D3DXFileCreate.

2012-10-22 Thread Jacek Caban
On 10/22/12 10:13 PM, Rico Schüller wrote: > On 22.10.2012 21:27, Christian Costa wrote: >> +static HRESULT WINAPI ID3DXFileImpl_QueryInterface(ID3DXFile *iface, REFIID riid, LPVOID *ret_iface) >> +ID3DXFileImpl *This = impl_from_ID3DXFile(iface); >> +ID3DXFileImpl* object; > Please be a b

Re: [PATCH 4/5] d3dx9_36: Implement ID3DXFileEnumObjectImpl_GetChildren & ID3DXFileEnumObjectImpl_GetChild and add stubbed interface for ID3DXFileData.

2012-10-22 Thread Christian Costa
Le 22/10/2012 22:29, Rico Schüller a écrit : On 22.10.2012 21:28, Christian Costa wrote: +static HRESULT WINAPI ID3DXFileDataImpl_GetType(ID3DXFileData *iface, GUID* guid) Spacing. msdn says "const GUID *pType" see http://msdn.microsoft.com/en-us/library/windows/desktop/bb205843%28v=vs.85%29.as

Re: [PATCH 5/5] d3dx9_36: Implement ID3DXFileDataImpl_GetType.

2012-10-22 Thread Rico Schüller
On 22.10.2012 21:28, Christian Costa wrote: static HRESULT WINAPI ID3DXFileDataImpl_Unlock(ID3DXFileData *iface) { + FIXME("(%p)->(): stub\n", iface); Why?

Re: [PATCH 2/5] d3dx9_36: Implement ID3DXFileImpl_RegisterTemplates.

2012-10-22 Thread Rico Schüller
On 22.10.2012 21:28, Christian Costa wrote: } ID3DXFileImpl; - static inline ID3DXFileImpl *impl_from_ID3DXFile(ID3DXFile *iface) It doesn't make much sense to add an empty line and remove it in the next patch.

Re: [PATCH 4/5] d3dx9_36: Implement ID3DXFileEnumObjectImpl_GetChildren & ID3DXFileEnumObjectImpl_GetChild and add stubbed interface for ID3DXFileData.

2012-10-22 Thread Rico Schüller
On 22.10.2012 21:28, Christian Costa wrote: +static HRESULT WINAPI ID3DXFileDataImpl_GetType(ID3DXFileData *iface, GUID* guid) Spacing. msdn says "const GUID *pType" see http://msdn.microsoft.com/en-us/library/windows/desktop/bb205843%28v=vs.85%29.aspx. Is it a bug in msdn? +ID3DXFileDa

Re: [PATCH 1/5] d3dx9_36: Implement D3DXFileCreate.

2012-10-22 Thread Rico Schüller
On 22.10.2012 21:27, Christian Costa wrote: +static HRESULT WINAPI ID3DXFileImpl_QueryInterface(ID3DXFile *iface, REFIID riid, LPVOID *ret_iface) +ID3DXFileImpl *This = impl_from_ID3DXFile(iface); +ID3DXFileImpl* object; Please be a bit more consistent across your patch... There are

Re: [PATCH 6/8] ntdll: Standardize on sysconf to detect the number of processors for all platforms.

2012-10-22 Thread James Eder
> Have you verified that this works correctly on all the platforms you are > changing? > > -- > Alexandre Julliard > julli...@winehq.org Having another look, some of the BSDs are lacking or gained support only somewhat recently. I had thought the BSDs weren't so different. For Apple we need 10.4

Re: [PATCH] user32: Fix error handling in MapWindowPoints, ClientToScreen and ScreenToClient and add tests for them. (try 2)

2012-10-22 Thread Christian Costa
Le 22/10/2012 20:35, Alexandre Julliard a écrit : Christian Costa writes: @@ -236,20 +236,32 @@ BOOL WINAPI GetClientRect( HWND hwnd, LPRECT rect ) /*** - * ClientToScreen (USER32.@) + * ClientToSc

[PATCH] try2 wineboot: detect correct processor name and vendorID, use Intel Pentium 4 as fallback

2012-10-22 Thread Patrick Rudolph
This patch super-seeds my previous attempt ID 91173. This time I used do_cpuid from ntdll / wbemprox. If cpuid is not available, the default "Intel Pentium 4" string is used. I modified get_processor_name to remove leading white-spaces. I also updated the code for Identifier REG_SZ. This applie

Re: [PATCH] user32: Fix error handling in MapWindowPoints, ClientToScreen and ScreenToClient and add tests for them. (try 2)

2012-10-22 Thread Alexandre Julliard
Christian Costa writes: > @@ -236,20 +236,32 @@ BOOL WINAPI GetClientRect( HWND hwnd, LPRECT rect ) > > > /*** > - * ClientToScreen (USER32.@) > + * ClientToScreen (USER32.@) > */ > BOOL WINAPI ClientToS

Re: [PATCH 5/6] dsound: rework ugly mixer logic

2012-10-22 Thread Maarten Lankhorst
Op 19-10-12 15:54, Andrew Eikum schreef: > Mostly good cleanup in this one. Some thoughts below... > > On Tue, Oct 16, 2012 at 02:06:29PM +0200, Maarten Lankhorst wrote: >> diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h >> index feef787..7817b88 100644 >> --- a/dlls/dsound

Re: [PATCH 5/6] dsound: rework ugly mixer logic

2012-10-22 Thread Maarten Lankhorst
Op 22-10-12 17:42, Andrew Eikum schreef: > On Sat, Oct 20, 2012 at 12:03:55AM +0200, Maarten Lankhorst wrote: >> Op 19-10-12 15:54, Andrew Eikum schreef: >>> Mostly good cleanup in this one. Some thoughts below... >>> >>> On Tue, Oct 16, 2012 at 02:06:29PM +0200, Maarten Lankhorst wrote: diff

Re: [PATCH 3/6] dsound: create a primary_pwfx separately from pwfx

2012-10-22 Thread Andrew Eikum
On Sat, Oct 20, 2012 at 12:13:08AM +0200, Maarten Lankhorst wrote: > Hey, > > Op 19-10-12 15:29, Andrew Eikum schreef: > > Patches 1 and 2 in this series look fine. > > > > I have a series of patches similar to this one in my dsound > > multichannel branch. This patch seems to do too much at once.

Re: [PATCH 5/6] dsound: rework ugly mixer logic

2012-10-22 Thread Andrew Eikum
On Sat, Oct 20, 2012 at 12:03:55AM +0200, Maarten Lankhorst wrote: > Op 19-10-12 15:54, Andrew Eikum schreef: > > Mostly good cleanup in this one. Some thoughts below... > > > > On Tue, Oct 16, 2012 at 02:06:29PM +0200, Maarten Lankhorst wrote: > >> diff --git a/dlls/dsound/dsound_private.h b/dlls/

Re: [PATCH 4/6] dsound: Use event based threads

2012-10-22 Thread Andrew Eikum
On Fri, Oct 19, 2012 at 11:33:22PM +0200, Maarten Lankhorst wrote: > Op 19-10-12 15:40, Andrew Eikum schreef: > > I'm a big fan of error checking (or at least reporting), so these > > unchecked calls make me nervous. They'll probably never fail, but if > > they do, I think they should fail loudly.

Re: [PATCH 5/5] services: Added tests for service thread termination without setting service state to stopped

2012-10-22 Thread Marvin
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=22392 Your paranoid android

Re: ntdll feature detection patch set

2012-10-22 Thread André Hentschel
Am 21.10.2012 02:51, schrieb James Eder: > I've been kicking this patch set around in my local git tree for a > while and I want to get it out there for comments and maybe even > inclusion in Wine. Seeing some comments in another thread about > wineboot made me think I should get these patches out

Re: [PATCH 1/4] mshtml: Fixed attribute object caching logic

2012-10-22 Thread Marvin
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=22384 Your paranoid android

Re: [PATCH 4/4] mshtml: Added more events tests

2012-10-22 Thread Marvin
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=22386 Your paranoid android

Re: [PATCH 2/2] d3dxof: Use sizeof(GUID) instead of hardcoding the value.

2012-10-22 Thread Alexandre Julliard
Christian Costa writes: > @@ -599,7 +599,7 @@ static HRESULT WINAPI > IDirectXFileDataImpl_GetId(IDirectXFileData* iface, LPGUID >if (!pGuid) > return DXFILEERR_BADVALUE; > > - memcpy(pGuid, &This->pobj->class_id, 16); > + memcpy(pGuid, &This->pobj->class_id, sizeof(GUID)); Using n

Re: d3dx9_36: Add tests for D3DXSHRotateZ

2012-10-22 Thread Alexandre Julliard
Michael Stefaniuc writes: > I'm removing CONST in the lines I touch so +1 on a concerted effort to > eradicate it. Though at 1.2k lines Alexandre might consider it too spammy. Yes, that's too much for a large scale cleanup. -- Alexandre Julliard julli...@winehq.org

Re: [PATCH 6/8] ntdll: Standardize on sysconf to detect the number of processors for all platforms.

2012-10-22 Thread Alexandre Julliard
James Eder writes: > @@ -1010,6 +1010,16 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* > info) > */ > void fill_cpu_info(void) > { > +long num; > + > +num = sysconf(_SC_NPROCESSORS_ONLN); > +if (num < 1) > +{ > +num = 1; > +WARN("Failed to detect t

Re: d3dx9_36: Add tests for D3DXSHRotateZ

2012-10-22 Thread Michael Stefaniuc
On 10/22/2012 11:21 AM, Henri Verbeet wrote: > On 22 October 2012 09:06, Rico Schüller wrote: >> On 19.10.2012 13:15, Nozomi Kodama wrote: >>> >>> This patch adds tests for the patch sent by Rico for D3DXSHRotateZ. >>> >>> Moreover, I changed const in CONST in the declaration of the function in >>

Re: d3dx9_36: Add tests for D3DXSHRotateZ

2012-10-22 Thread Henri Verbeet
On 22 October 2012 09:06, Rico Schüller wrote: > On 19.10.2012 13:15, Nozomi Kodama wrote: >> >> This patch adds tests for the patch sent by Rico for D3DXSHRotateZ. >> >> Moreover, I changed const in CONST in the declaration of the function in >> order to uniformize with the file. > > >> +cons

Re: d3dx9_36: Add tests for D3DXSHRotateZ

2012-10-22 Thread Rico Schüller
On 19.10.2012 13:15, Nozomi Kodama wrote: This patch adds tests for the patch sent by Rico for D3DXSHRotateZ. Moreover, I changed const in CONST in the declaration of the function in order to uniformize with the file. > +const FLOAT angle[] = ... I'd prefer "const" because it is used a lit