[PATCH] - rewrote toolhelp implementation only on top of ntdll functions

Alexandre Julliard julliard at winehq.org
Wed Apr 5 04:37:48 CDT 2006


Eric Pouech <eric.pouech at wanadoo.fr> writes:

> +        l = min(ldr_mod[i].BaseDllName.Length, sizeof(mod->szModule) - sizeof(WCHAR));
> +        memcpy(mod->szModule, ldr_mod[i].BaseDllName.Buffer, l);
> +        mod->szModule[l / sizeof(WCHAR)] = '\0';
> +        l = min(ldr_mod[i].FullDllName.Length, sizeof(mod->szModule) - sizeof(WCHAR));
> +        memcpy(mod->szExePath, ldr_mod[i].FullDllName.Buffer, l);

This can't work, the dll name and path are in the address space of the
target process.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list