diff --git "a/dll/win32/version/version.c" "b/dll/win32/version/version.c" index 0e2f35dd107..2025b0b383c 100644 --- "a/dll/win32/version/version.c" +++ "b/dll/win32/version/version.c" @@ -979,6 +979,11 @@ static BOOL VersionInfo32_QueryValue( const VS_VERSION_INFO_STRUCT32 *info, LPCW /* Return value */ *lplpBuffer = VersionInfo32_Value( info ); + + /* If the wValueLength is zero, then set a UNICODE_NULL only string. */ + if (!info->wValueLength) + *lplpBuffer = L""; + if (puLen) *puLen = info->wValueLength; if (pbText)