[Webkit-unassigned] [Bug 43920] Fix warning in WebCore\plugins\win\PluginPackageWin.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 8 07:07:24 PDT 2010


--- Comment #6 from Adam Roben (aroben) <aroben at apple.com>  2010-09-08 07:07:24 PST ---
(In reply to comment #5)
> ..\..\..\WebCore\plugins\win\PluginPackageWin.cpp: In member function 'bool WebCore::PluginPackage::fetchInfo()':
> ..\..\..\WebCore\plugins\win\PluginPackageWin.cpp:184: warning: deprecated conversion from string constant to 'WCHAR*'
> if (!VerQueryValueW(versionInfoData.get(), L"\\", (LPVOID*) &info, &infoSize) || infoSize < sizeof(VS_FIXEDFILEINFO))
>         return false;
> Unfortunately MinGW still warns. I thought 
> it worked, because I missed --debug option. :(

I don't see any WCHAR* involved here. VerQueryValue's second parameter is an LPCTSTR, so VerQueryValueW's second parameter should be an LPCWSTR, i.e. const WCHAR*. L"\\" should give us a const WCHAR*. I don't understand the error, nor what "string constant" it is referring to.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list