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,
0,
PropSheet);
Info->PropSheet = NULL;
}
}
break;

View file

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

View file

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