[PATCH] kernel32: add AddDllDirectory stub

Hugh McMaster hugh.mcmaster at outlook.com
Wed May 17 23:00:57 CDT 2017


On Thursday, 18 May 2017 9:00 AM, Austin English wrote:
>
> +/*************************************************************************
> + *           AddDllDirectory   (KERNEL32.@)
> + */
> +BOOL WINAPI AddDllDirectory(WCHAR *directory)
> +{
> +    FIXME("(%s): stub\n", wine_dbgstr_w(directory));
> +    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
> +    return FALSE;
> +}

This function actually returns DLL_DIRECTORY_COOKIE, which is a typedef'd void *.
The actual definition is in libloaderapi.h, which Wine doesn't have.

And, according to MSDN, directory should be const WCHAR *.

--
Hugh McMaster


More information about the wine-devel mailing list