Re: dsound: Disable thread calls and increase refcount in dllmain

2007-08-30 Thread Alexandre Julliard
Maarten Lankhorst <[EMAIL PROTECTED]> writes: > I want to be able to rename the dll without having to worry about that > line. That's why I'm getting the full file name. Easier to run tests > that way. You should use GetModuleHandleEx to increment the refcount directly from the module handle. --

Re: dsound: Disable thread calls and increase refcount in dllmain

2007-08-30 Thread Maarten Lankhorst
Dmitry Timoshkov schreef: > "Maarten Lankhorst" <[EMAIL PROTECTED]> wrote: > >> Seems native directsound keeps itself loaded by calling LoadLibrary when >> attaching. A simple testcase I wrote confirms that at least for xp, by >> not crashing. > > After seeing this, I decided to write my own test,

Re: dsound: Disable thread calls and increase refcount in dllmain

2007-08-30 Thread Dmitry Timoshkov
"Maarten Lankhorst" <[EMAIL PROTECTED]> wrote: Seems native directsound keeps itself loaded by calling LoadLibrary when attaching. A simple testcase I wrote confirms that at least for xp, by not crashing. After seeing this, I decided to write my own test, and can confirm now that this patch lo