Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
bda2fe5e
Commit
bda2fe5e
authored
Apr 11, 2005
by
Ferenc Wagner
Committed by
Alexandre Julliard
Apr 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the same maximum length for tags given on the command line and
tags entered in the GUI.
parent
50794ce7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
gui.c
programs/winetest/gui.c
+1
-1
main.c
programs/winetest/main.c
+3
-0
winetest.h
programs/winetest/winetest.h
+1
-0
No files found.
programs/winetest/gui.c
View file @
bda2fe5e
...
@@ -328,7 +328,7 @@ AskTagProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
...
@@ -328,7 +328,7 @@ 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
<=
20
)
{
/* keep it consistent with IDD_TAG */
if
(
len
<=
MAXTAGLEN
)
{
tag
=
xmalloc
(
len
+
1
);
tag
=
xmalloc
(
len
+
1
);
GetDlgItemTextA
(
hwnd
,
IDC_TAG
,
tag
,
len
+
1
);
GetDlgItemTextA
(
hwnd
,
IDC_TAG
,
tag
,
len
+
1
);
if
(
!
badtagchar
(
tag
))
EndDialog
(
hwnd
,
IDOK
);
if
(
!
badtagchar
(
tag
))
EndDialog
(
hwnd
,
IDOK
);
...
...
programs/winetest/main.c
View file @
bda2fe5e
...
@@ -598,6 +598,9 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
...
@@ -598,6 +598,9 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
break
;
break
;
case
't'
:
case
't'
:
tag
=
strtok
(
NULL
,
whitespace
);
tag
=
strtok
(
NULL
,
whitespace
);
if
(
strlen
(
tag
)
>
MAXTAGLEN
)
report
(
R_FATAL
,
"tag is too long (maximum %d characters)"
,
MAXTAGLEN
);
cp
=
badtagchar
(
tag
);
cp
=
badtagchar
(
tag
);
if
(
cp
)
{
if
(
cp
)
{
report
(
R_ERROR
,
"invalid char in tag: %c"
,
*
cp
);
report
(
R_ERROR
,
"invalid char in tag: %c"
,
*
cp
);
...
...
programs/winetest/winetest.h
View file @
bda2fe5e
...
@@ -57,6 +57,7 @@ enum report_type {
...
@@ -57,6 +57,7 @@ enum report_type {
R_QUIET
R_QUIET
};
};
#define MAXTAGLEN 20
extern
char
*
tag
;
extern
char
*
tag
;
int
guiAskTag
(
void
);
int
guiAskTag
(
void
);
int
report
(
enum
report_type
t
,
...);
int
report
(
enum
report_type
t
,
...);
...
...
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