Jeff Zaroyko : winetest: Check that user enters a tag.
Alexandre Julliard
julliard at winehq.org
Thu Sep 4 08:27:04 CDT 2008
Module: wine
Branch: master
Commit: 454a241e97ba99b0f7452b306320f69cce393778
URL: http://source.winehq.org/git/wine.git/?a=commit;h=454a241e97ba99b0f7452b306320f69cce393778
Author: Jeff Zaroyko <jeffz at jeffz.name>
Date: Thu Sep 4 18:06:46 2008 +1000
winetest: Check that user enters a tag.
---
programs/winetest/gui.c | 4 ++++
programs/winetest/main.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/programs/winetest/gui.c b/programs/winetest/gui.c
index b738679..2957dbf 100644
--- a/programs/winetest/gui.c
+++ b/programs/winetest/gui.c
@@ -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);
diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 045845a..86035f0 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -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!");
More information about the wine-cvs
mailing list