ensure required fields are filled.
Modified: trunk/reactos/base/applications/servman/En.rc
Modified: trunk/reactos/base/applications/servman/create.c
_____
Modified: trunk/reactos/base/applications/servman/En.rc
--- trunk/reactos/base/applications/servman/En.rc 2006-02-05
20:09:42 UTC (rev 96)
+++ trunk/reactos/base/applications/servman/En.rc 2006-02-05
20:18:58 UTC (rev 97)
@@ -118,9 +118,9 @@
CONTROL
"",IDC_CREATE_PATH,"Edit",0x50010000,8,62,214,13,0x00000200
CONTROL
"",IDC_CREATE_DESC,"Edit",0x50010000,10,97,210,48,0x00000200
CONTROL
"",IDC_CREATE_OPTIONS,"Edit",0x50010000,10,162,210,13,0x00000200
- CONTROL "Service Name :",IDC_STATIC,"Static",0x50000202,12,12,54,9
- CONTROL "Display Name :",IDC_STATIC,"Static",0x50000202,12,33,54,9
- CONTROL "Path to executable
:",IDC_STATIC,"Static",0x50000000,10,51,68,9
+ CONTROL "*Service Name
:",IDC_STATIC,"Static",0x50000202,12,12,54,9
+ CONTROL "*Display Name
:",IDC_STATIC,"Static",0x50000202,12,33,54,9
+ CONTROL "*Path to executable
:",IDC_STATIC,"Static",0x50000000,10,51,68,9
CONTROL "Description :",IDC_STATIC,"Static",0x50000000,12,86,44,9
CONTROL "OK",IDOK,"Button",0x50010000,126,192,44,13
CONTROL "Cancel",IDCANCEL,"Button",0x50010000,176,192,46,13
_____
Modified: trunk/reactos/base/applications/servman/create.c
--- trunk/reactos/base/applications/servman/create.c 2006-02-05
20:09:42 UTC (rev 96)
+++ trunk/reactos/base/applications/servman/create.c 2006-02-05
20:18:58 UTC (rev 97)
@@ -138,6 +138,12 @@
}
}
+ else
+ {
+ MessageBox(NULL, _T("Items with a star are
required"), NULL, 0);
+ SetFocus(hwnd);
+ break;
+ }
/* get display name */
iLen = 0;
@@ -150,6 +156,12 @@
GetWindowText(hwnd, DisplayName, iLen+1);
}
+ else
+ {
+ MessageBox(NULL, _T("Items with a star are
required"), NULL, 0);
+ SetFocus(hwnd);
+ break;
+ }
/* get binary path */
iLen = 0;
@@ -162,6 +174,12 @@
GetWindowText(hwnd, BinPath, iLen+1);
}
+ else
+ {
+ MessageBox(NULL, _T("Items with a star are
required"), NULL, 0);
+ SetFocus(hwnd);
+ break;
+ }
/* get description */
iLen = 0;