Commit 46c5eb17 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

hnetcfg: GetModuleFileNameW gets characters, not bytes (Coverity).

parent 5e3081c8
......@@ -117,7 +117,7 @@ static void test_NetFwAuthorizedApplication(void)
&IID_INetFwAuthorizedApplication, (void**)&app);
ok(hr == S_OK, "got: %08x\n", hr);
hr = GetModuleFileNameW(NULL, image, sizeof(image));
hr = GetModuleFileNameW(NULL, image, ARRAY_SIZE(image));
ok(hr, "GetModuleFileName failed: %u\n", GetLastError());
hr = INetFwAuthorizedApplication_get_ProcessImageFileName(app, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment