Signed-off-by: Vincent Povirk <vincent at codeweavers.com> +static WCHAR *create_testfontfile(const WCHAR *filename, int resource) +{ + static WCHAR pathW[MAX_PATH]; ... + return pathW; +} I guess this is fine, but I think it'd be simpler to have the caller pass in a buffer.