mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
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:
parent
d3f58e5415
commit
f45c3a82e8
3 changed files with 4 additions and 2 deletions
|
@ -535,6 +535,8 @@ MainWndCommand(PMAIN_WND_INFO Info,
|
|||
HeapFree(ProcessHeap,
|
||||
0,
|
||||
PropSheet);
|
||||
|
||||
Info->PropSheet = NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue