google-code-export / rainmeter

Automatically exported from code.google.com/p/rainmeter
1 stars 0 forks source link

Rainmeter crashes when "WindowMessagePlugin.dll" is loaded #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by kenz0.sa...@gmail.com on 29 Aug 2009 at 2:39

GoogleCodeExporter commented 9 years ago
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;
    }
----------

Original comment by spx268 on 29 Aug 2009 at 4:46

GoogleCodeExporter commented 9 years ago
The fix is integrated to r205.

Original comment by kimmo.pekkola on 2 Sep 2009 at 5:05

GoogleCodeExporter commented 9 years ago

Original comment by kimmo.pekkola on 2 Sep 2009 at 5:05