mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:25:38 +00:00
winetest: Check that user enters a tag.
This commit is contained in:
parent
3f00006f1f
commit
454a241e97
|
@ -337,6 +337,10 @@ AskTagProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
switch (LOWORD (wParam)) {
|
switch (LOWORD (wParam)) {
|
||||||
case IDOK:
|
case IDOK:
|
||||||
len = GetWindowTextLengthA (GetDlgItem (hwnd, IDC_TAG));
|
len = GetWindowTextLengthA (GetDlgItem (hwnd, IDC_TAG));
|
||||||
|
if(!len) {
|
||||||
|
report (R_WARNING, "You must enter a tag to continue");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
tag = xmalloc (len+1);
|
tag = xmalloc (len+1);
|
||||||
GetDlgItemTextA (hwnd, IDC_TAG, tag, len+1);
|
GetDlgItemTextA (hwnd, IDC_TAG, tag, len+1);
|
||||||
EndDialog (hwnd, IDOK);
|
EndDialog (hwnd, IDOK);
|
||||||
|
|
|
@ -672,7 +672,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
|
||||||
SetEnvironmentVariableA( "WINETEST_REPORT_SUCCESS", "0" );
|
SetEnvironmentVariableA( "WINETEST_REPORT_SUCCESS", "0" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tag) {
|
while (!tag) {
|
||||||
if (!interactive)
|
if (!interactive)
|
||||||
report (R_FATAL, "Please specify a tag (-t option) if "
|
report (R_FATAL, "Please specify a tag (-t option) if "
|
||||||
"running noninteractive!");
|
"running noninteractive!");
|
||||||
|
|
Loading…
Reference in a new issue