Re: d3dx8: Implementation of WINAPI D3DXAssembleShaderFromFileA

2007-11-26 Thread luis . busquets
I say that it is more readable because I understood you wanted the return code as soon as possible, but, anyway, what would you propose as code for this function? Would the following work for you? + + if ( !pSrcFile ) + return D3DXERR_INVALIDDATA; + else + { + LPWSTR pSrcFileW = NULL; +

Re: d3dx8: Implementation of WINAPI D3DXAssembleShaderFromFileA

2007-11-26 Thread Dmitry Timoshkov
""Luis C. Busquets Pérez"" <[EMAIL PROTECTED]> wrote: > Changed the if clauses to make the implementation more readable. ... > + if ( !pSrcFile ) > + return D3DXERR_INVALIDDATA; > + else > + { > + len = MultiByteToWideChar( CP_ACP, 0, pSrcFile, -1, NULL, 0 ); > + pSrcFileW = HeapAlloc( Ge

xdg_user_dirs patches

2007-11-26 Thread Vijay Kiran Kamuju
Hi Lei, I think a new file for user dir look up in the shell32 is of no use. Rather than we can add it to the xdg.c and xdg.h, as it contains the generic xdg code for shell32. Its like having all xdg specific code at one place. This is my personal opinion about those patches. Thanks, VJ

Re: ole32: Add tests for WdtpInterfacePointer_* functions.

2007-11-26 Thread Juan Lang
Hi Rob, +ok(*(DWORD *)wireip == 0x44, "wireip + 0x0 should be 0x4c instead of 0x%08x\n", *(DWORD *)wireip); +wireip += sizeof(DWORD); +ok(*(DWORD *)wireip == 0x44, "wireip + 0x8 should be 0x4c instead of 0x%08x\n", *(DWORD *)wireip); Shouldn't these be "should be 0x44 inst

Re: [PATCH 3/3] advapi32: Add support for using the Mac Keychain services as a backend for the credential functions instead of the registry.

2007-11-26 Thread Robert Shearman
Juan Lang wrote: > Hi Rob, > > @@ -232,6 +239,198 @@ static DWORD registry_read_credential(HKEY hkey, > PCREDENTIALW credential, > return ret; > } > > +static DWORD mac_read_credential_from_item(SecKeychainItemRef item, > BOOL require_password, > + PC

Re: [PATCH 3/3] advapi32: Add support for using the Mac Keychain services as a backend for the credential functions instead of the registry.

2007-11-26 Thread Juan Lang
Hi Rob, @@ -232,6 +239,198 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential, return ret; } +static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require_password, + PCREDENTIALW credential, char *buffer

Re: 1.0 bugs

2007-11-26 Thread Dan Kegel
On Nov 25, 2007 10:10 PM, Dan Kegel <[EMAIL PROTECTED]> wrote: > So far, 82 bugs have been nominated to be fixed for 1.0. Forgot to mention: http://wiki.winehq.org/WineReleaseCriteria has a handy link to a bugzilla query that shows the list of 1.0 bugs.

Re: [keyboard] GetAsyncKeyState: request for fixing #5623

2007-11-26 Thread Stefan Dösinger
Am Montag, 26. November 2007 12:17:07 schrieb Rafał Miłecki: > 2007/11/7, Rafał Miłecki <[EMAIL PROTECTED]>: > > Bug is quite well decribed in: > > http://bugs.winehq.org/show_bug.cgi?id=5623 but if you don't > > understand this, I can try to explain more detailed. > > > > So my request is someone

Re: d3dx8: Implementation of D3DXAssembleShaderFromFileA using D3DXAssembleShaderFromFileW

2007-11-26 Thread Stefan Dösinger
Am Montag, 26. November 2007 11:37:28 schrieb [EMAIL PROTECTED]: > --- > dlls/d3dx8/d3dx8_main.c | 22 -- > include/d3dx8core.h |4 ++-- > 2 files changed, 18 insertions(+), 8 deletions(-) Please watch out with indentions. You are mixing tabs and spaces in D3DXAssemb

Re: Re: urlmon: Wrap heap functions.

2007-11-26 Thread Lionel Debroux
Hi, > In Wine HeapAlloc gets wrapped in different places, each using a > different name and even a different naming convention. This makes the > code harder to understand for people that browse the code (people doing > janitorial work) as they have to check every time if the function is yet > anot

Re: widl [1/7]: Output working exception handling macros. [take 2]

2007-11-26 Thread Alexandre Julliard
Dan Hipschman <[EMAIL PROTECTED]> writes: > This is essentially the same as the last attempt but doesn't add a wine- > internal function to kernel32. It just puts the code directly in the > widl-generated exception handler. An alternative is to handle these access- > based page faults for which

Re: d3dx8: Implementation of D3DXAssembleShaderFromFileA using D3DXAssembleShaderFromFileW

2007-11-26 Thread Dmitry Timoshkov
<[EMAIL PROTECTED]> wrote: > + LPWSTR pSrcFileW = NULL; > + DWORD len; > + HRESULT ret; > + if (pSrcFile) > + { > +len = MultiByteToWideChar( CP_ACP, 0, pSrcFile, -1, NULL, 0 ); > +pSrcFileW = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ); > +MultiByteToWide

Re: [keyboard] GetAsyncKeyState: request for fixing #5623

2007-11-26 Thread Rafał Miłecki
2007/11/7, Rafał Miłecki <[EMAIL PROTECTED]>: > Bug is quite well decribed in: > http://bugs.winehq.org/show_bug.cgi?id=5623 but if you don't > understand this, I can try to explain more detailed. > > So my request is someone try to fix this bug. Anyone have a free > moment for this, please? Reall

Re: urlmon: Wrap heap functions.

2007-11-26 Thread Michael Stefaniuc
Hello! (Jacek, this is not directed at you but a general rant). HeapAlloc is an awful API and even its creators wrap it in a couple of DLLs. In Wine HeapAlloc gets wrapped in different places, each using a different name and even a different naming convention. This makes the code harder to underst