[coverity] 1543172 Pointer to local outside scope

This commit is contained in:
akallabeth 2024-04-11 10:50:18 +02:00 committed by akallabeth
parent 55aa202ff5
commit 843ecfc01a

View File

@ -1002,7 +1002,7 @@ PCSTR PathGetSharedLibraryExtensionA(unsigned long dwFlags)
PCWSTR PathGetSharedLibraryExtensionW(unsigned long dwFlags) PCWSTR PathGetSharedLibraryExtensionW(unsigned long dwFlags)
{ {
WCHAR buffer[6][16] = { 0 }; static WCHAR buffer[6][16] = { 0 };
const WCHAR* SharedLibraryExtensionDotDllW = InitializeConstWCharFromUtf8( const WCHAR* SharedLibraryExtensionDotDllW = InitializeConstWCharFromUtf8(
SharedLibraryExtensionDotDllA, buffer[0], ARRAYSIZE(buffer[0])); SharedLibraryExtensionDotDllA, buffer[0], ARRAYSIZE(buffer[0]));
const WCHAR* SharedLibraryExtensionDotSoW = const WCHAR* SharedLibraryExtensionDotSoW =