mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +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
|
@ -535,6 +535,8 @@ MainWndCommand(PMAIN_WND_INFO Info,
|
||||||
HeapFree(ProcessHeap,
|
HeapFree(ProcessHeap,
|
||||||
0,
|
0,
|
||||||
PropSheet);
|
PropSheet);
|
||||||
|
|
||||||
|
Info->PropSheet = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue