From: Matteo Bruni Subject: Re: [PATCH v2 2/3] d3dx10/tests: Add tests for D3DX10GetImageInfoFromFileA(). Message-Id: Date: Fri, 18 Sep 2020 11:12:24 +0200 In-Reply-To: <2477119b-e481-e593-6c41-815155d3dfc2@codeweavers.com> References: <2477119b-e481-e593-6c41-815155d3dfc2@codeweavers.com> On Mon, Sep 14, 2020 at 6:20 AM Ziqing Hui wrote: > > > Signed-off-by: Ziqing Hui > --- > dlls/d3dx10_43/tests/d3dx10.c | 40 +++++++++++++++++++++++++++++------ > 1 file changed, 33 insertions(+), 7 deletions(-) I think get_str_a() is not necessary, just use MAX_PATH for the string. If the user is running the tests with some crazy temporary files path that's < MAX_PATH in utf16 but >= MAX_PATH when ASCII, too bad for them...