Author: gedmurphy
Date: Wed Jun 14 01:30:54 2006
New Revision: 22344
URL:
http://svn.reactos.ru/svn/reactos?rev=22344&view=rev
Log:
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
Modified:
trunk/reactos/base/applications/servman/mainwnd.c
trunk/reactos/base/applications/servman/start.c
trunk/reactos/base/applications/servman/stop.c
Modified: trunk/reactos/base/applications/servman/mainwnd.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/servman/m…
==============================================================================
--- trunk/reactos/base/applications/servman/mainwnd.c (original)
+++ trunk/reactos/base/applications/servman/mainwnd.c Wed Jun 14 01:30:54 2006
@@ -535,6 +535,8 @@
HeapFree(ProcessHeap,
0,
PropSheet);
+
+ Info->PropSheet = NULL;
}
}
break;
Modified: trunk/reactos/base/applications/servman/start.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/servman/s…
==============================================================================
--- trunk/reactos/base/applications/servman/start.c (original)
+++ trunk/reactos/base/applications/servman/start.c Wed Jun 14 01:30:54 2006
@@ -201,7 +201,7 @@
(LPARAM) &item);
/* change dialog status */
- if (Info->PropSheet->hwndGenDlg)
+ if (Info->PropSheet != NULL)
{
LoadString(hInstance,
IDS_SERVICES_STARTED,
Modified: trunk/reactos/base/applications/servman/stop.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/servman/s…
==============================================================================
--- trunk/reactos/base/applications/servman/stop.c (original)
+++ trunk/reactos/base/applications/servman/stop.c Wed Jun 14 01:30:54 2006
@@ -58,7 +58,7 @@
(LPARAM) &item);
/* change dialog status */
- if (Info->PropSheet->hwndGenDlg)
+ if (Info->PropSheet != NULL)
{
LoadString(hInstance,
IDS_SERVICES_STOPPED,