Fixed the crash problem when multiple Rainmeter instances are running and "show desktop" occured.

This commit is contained in:
spx
2010-03-23 16:15:07 +00:00
parent 22deccb366
commit 8b9e21e38f
3 changed files with 19 additions and 1 deletions

View File

@ -581,7 +581,8 @@ BOOL CALLBACK MyEnumWindowsProc(HWND hwnd, LPARAM lParam)
if (GetClassName(hwnd, className, 128) > 0 &&
wcscmp(className, L"RainmeterMeterWindow") == 0 &&
(Window = (CMeterWindow*)GetProp(hwnd, L"RAINMETER")))
Rainmeter &&
(Window = Rainmeter->GetMeterWindow(hwnd)))
{
if (Window->GetWindowZPosition() == ZPOSITION_ONDESKTOP)
{