Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
454a241e
Commit
454a241e
authored
Sep 04, 2008
by
Jeff Zaroyko
Committed by
Alexandre Julliard
Sep 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Check that user enters a tag.
parent
3f00006f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
gui.c
programs/winetest/gui.c
+4
-0
main.c
programs/winetest/main.c
+1
-1
No files found.
programs/winetest/gui.c
View file @
454a241e
...
@@ -337,6 +337,10 @@ AskTagProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
...
@@ -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
);
...
...
programs/winetest/main.c
View file @
454a241e
...
@@ -672,7 +672,7 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
...
@@ -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!"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment