Shell32: Reimplement SHGetFolder functions

Alexandre Julliard julliard at winehq.org
Mon Sep 13 19:19:59 CDT 2004


Juan Lang <juan_lang at yahoo.com> writes:

> +static void loadShell32(void)
> +{
> +    if (hShell32)
> +    {
> +        if (pMalloc)
> +        {
> +            pMalloc->lpVtbl->Release(pMalloc);
> +            pMalloc = NULL;
> +        }
> +        /* until it's really unloaded: */
> +        while (FreeLibrary(hShell32))
> +            ;

I'm not sure what you are trying to do here, but this causes an
infinite loop on XP (and it probably should under Wine too, since the
test binary imports shell32). Also some tests fail on XP:

shellpath.c:433: Test failed: SHGetFolderPath returned 0x00000000, expected 0x80070002
shellpath.c:438: Test failed: SHGetFolderLocation returned 0x00000000, expected E_FAIL
shellpath.c:442: Test failed: SHGetSpecialFolderPath succeeded, expected failure
shellpath.c:447: Test failed: SHGetFolderLocation returned 0x00000000, expected E_FAIL

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list