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
fad1e110
Commit
fad1e110
authored
Oct 24, 2003
by
Robert Shearman
Committed by
Alexandre Julliard
Oct 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't store band text if "" is passed into SetBandInfo.
parent
54542829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
rebar.c
dlls/comctl32/rebar.c
+10
-4
No files found.
dlls/comctl32/rebar.c
View file @
fad1e110
...
@@ -3402,8 +3402,11 @@ REBAR_SetBandInfoA (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
...
@@ -3402,8 +3402,11 @@ REBAR_SetBandInfoA (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
}
if
(
lprbbi
->
lpText
)
{
if
(
lprbbi
->
lpText
)
{
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lprbbi
->
lpText
,
-
1
,
NULL
,
0
);
INT
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lprbbi
->
lpText
,
-
1
,
NULL
,
0
);
lpBand
->
lpText
=
(
LPWSTR
)
Alloc
(
len
*
sizeof
(
WCHAR
));
if
(
len
>
1
)
MultiByteToWideChar
(
CP_ACP
,
0
,
lprbbi
->
lpText
,
-
1
,
lpBand
->
lpText
,
len
);
{
lpBand
->
lpText
=
(
LPWSTR
)
Alloc
(
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
lprbbi
->
lpText
,
-
1
,
lpBand
->
lpText
,
len
);
}
}
}
}
}
...
@@ -3447,8 +3450,11 @@ REBAR_SetBandInfoW (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
...
@@ -3447,8 +3450,11 @@ REBAR_SetBandInfoW (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
}
}
if
(
lprbbi
->
lpText
)
{
if
(
lprbbi
->
lpText
)
{
INT
len
=
lstrlenW
(
lprbbi
->
lpText
);
INT
len
=
lstrlenW
(
lprbbi
->
lpText
);
lpBand
->
lpText
=
(
LPWSTR
)
Alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
if
(
len
>
0
)
strcpyW
(
lpBand
->
lpText
,
lprbbi
->
lpText
);
{
lpBand
->
lpText
=
(
LPWSTR
)
Alloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
strcpyW
(
lpBand
->
lpText
,
lprbbi
->
lpText
);
}
}
}
}
}
...
...
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