Commit 454a241e authored by Jeff Zaroyko's avatar Jeff Zaroyko Committed by Alexandre Julliard

winetest: Check that user enters a tag.

parent 3f00006f
......@@ -337,6 +337,10 @@ AskTagProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
switch (LOWORD (wParam)) {
case IDOK:
len = GetWindowTextLengthA (GetDlgItem (hwnd, IDC_TAG));
if(!len) {
report (R_WARNING, "You must enter a tag to continue");
return FALSE;
}
tag = xmalloc (len+1);
GetDlgItemTextA (hwnd, IDC_TAG, tag, len+1);
EndDialog (hwnd, IDOK);
......
......@@ -672,7 +672,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
SetEnvironmentVariableA( "WINETEST_REPORT_SUCCESS", "0" );
}
if (!tag) {
while (!tag) {
if (!interactive)
report (R_FATAL, "Please specify a tag (-t option) if "
"running noninteractive!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment