fix checking of the properties dialog to see if it's open before sending messages to it. Stops the crash when starting or stopping services

svn path=/trunk/; revision=22344
This commit is contained in:
Ged Murphy 2006-06-13 21:30:54 +00:00
parent d3f58e5415
commit f45c3a82e8
3 changed files with 4 additions and 2 deletions

View file

@ -535,6 +535,8 @@ MainWndCommand(PMAIN_WND_INFO Info,
HeapFree(ProcessHeap, HeapFree(ProcessHeap,
0, 0,
PropSheet); PropSheet);
Info->PropSheet = NULL;
} }
} }
break; break;

View file

@ -201,7 +201,7 @@ DoStart(PMAIN_WND_INFO Info)
(LPARAM) &item); (LPARAM) &item);
/* change dialog status */ /* change dialog status */
if (Info->PropSheet->hwndGenDlg) if (Info->PropSheet != NULL)
{ {
LoadString(hInstance, LoadString(hInstance,
IDS_SERVICES_STARTED, IDS_SERVICES_STARTED,

View file

@ -58,7 +58,7 @@ BOOL DoStop(PMAIN_WND_INFO Info)
(LPARAM) &item); (LPARAM) &item);
/* change dialog status */ /* change dialog status */
if (Info->PropSheet->hwndGenDlg) if (Info->PropSheet != NULL)
{ {
LoadString(hInstance, LoadString(hInstance,
IDS_SERVICES_STOPPED, IDS_SERVICES_STOPPED,