mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:56:00 +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,
|
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…
Add table
Add a link
Reference in a new issue