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
aa57a0b9
Commit
aa57a0b9
authored
Jul 26, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/tests: Write-strings warnings fix.
parent
d1617bea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
menu.c
dlls/user/tests/menu.c
+6
-3
No files found.
dlls/user/tests/menu.c
View file @
aa57a0b9
...
...
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "windef.h"
...
...
@@ -75,7 +76,7 @@ static HMENU hMenus[4];
/* menu texts with their sizes */
static
struct
{
char
*
text
;
LPCSTR
text
;
SIZE
size
;
/* size of text up to any \t */
SIZE
sc_size
;
/* size of the short-cut */
}
MOD_txtsizes
[]
=
{
...
...
@@ -324,13 +325,14 @@ static void test_menu_ownerdraw(void)
/* helper for test_menu_bmp_and_string() */
static
void
test_mbs_help
(
int
ispop
,
int
hassub
,
int
mnuopt
,
HWND
hwnd
,
int
arrowwidth
,
int
count
,
HBITMAP
hbmp
,
SIZE
bmpsize
,
char
*
text
,
SIZE
size
,
SIZE
sc_size
)
SIZE
bmpsize
,
LPCSTR
text
,
SIZE
size
,
SIZE
sc_size
)
{
BOOL
ret
;
HMENU
hmenu
,
submenu
;
MENUITEMINFO
mii
=
{
sizeof
(
MENUITEMINFO
)};
MENUINFO
mi
;
RECT
rc
;
CHAR
text_copy
[
16
];
int
hastab
,
expect
;
int
failed
=
0
;
...
...
@@ -344,7 +346,8 @@ static void test_mbs_help( int ispop, int hassub, int mnuopt,
if
(
text
)
{
char
*
p
;
mii
.
fMask
|=
MIIM_STRING
;
mii
.
dwTypeData
=
text
;
strcpy
(
text_copy
,
text
);
mii
.
dwTypeData
=
text_copy
;
/* structure member declared non-const */
if
(
(
p
=
strchr
(
text
,
'\t'
)))
{
hastab
=
*
(
p
+
1
)
?
2
:
1
;
}
...
...
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