Export to GitHub

rainmeter - issue #105

Rainmeter crashes when "WindowMessagePlugin.dll" is loaded


Posted on Aug 29, 2009 by Quick Rhino

Rainmeter crashes when "WindowMessagePlugin.dll" is loaded. This problem came to occur from r192.

Environment: Rainmeter.exe v1.1 r192 Windows XP SP3

Dump File: http://kenz0.s201.xrea.com/download/dump.7z

Comment #1

Posted on Aug 29, 2009 by Helpful Camel

When the NULL pointer is converted to std::wstring, the access violation is generated. NULL is not specified for the argument of ReadConfigString(), or NULL is replaced with the empty string in CConfigParser::ReadString().

E.g.

const std::wstring& CConfigParser::ReadString(LPCTSTR section, LPCTSTR key, LPCTSTR defValue, bool bReplaceMeasures) { static std::wstring result;

if (section == NULL)
{
    section = L"";
}
if (key == NULL)
{
    key = L"";
}
if (defValue == NULL)
{
    defValue = L"";
}

result = GetValue(section, key, defValue);
if (result == defValue)
{
    return result;

}

Comment #2

Posted on Sep 2, 2009 by Swift Camel

The fix is integrated to r205.

Comment #3

Posted on Sep 2, 2009 by Swift Camel

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium