Re: Shell32: Reimplement SHGetFolder functions

2004-09-15 Thread Alexandre Julliard
Juan Lang <[EMAIL PROTECTED]> writes: > I'm unable to reproduce the infinite loop under XP. > As far as I can tell this shouldn't produce one, > either: since I don't modify the value of hShell32, > FreeLibrary should eventually fail when the refcount > on the library reaches 0 and the library is

Re: Shell32: Reimplement SHGetFolder functions

2004-09-15 Thread Juan Lang
--- Alexandre Julliard <[EMAIL PROTECTED]> wrote: > > +static void loadShell32(void) > > +{ > > +if (hShell32) > > +{ > > +if (pMalloc) > > +{ > > +pMalloc->lpVtbl->Release(pMalloc); > > +pMalloc = NULL; > > +} > > +/* until it's reall

Re: Shell32: Reimplement SHGetFolder functions

2004-09-13 Thread Juan Lang
--- Alexandre Julliard <[EMAIL PROTECTED]> wrote: > > +static void loadShell32(void) > > +{ > > +if (hShell32) > > +{ > > +if (pMalloc) > > +{ > > +pMalloc->lpVtbl->Release(pMalloc); > > +pMalloc = NULL; > > +} > > +/* until it's reall

Re: Shell32: Reimplement SHGetFolder functions

2004-09-13 Thread Alexandre Julliard
Juan Lang <[EMAIL PROTECTED]> writes: > +static void loadShell32(void) > +{ > +if (hShell32) > +{ > +if (pMalloc) > +{ > +pMalloc->lpVtbl->Release(pMalloc); > +pMalloc = NULL; > +} > +/* until it's really unloaded: */ > +while