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
58773385
Commit
58773385
authored
Sep 24, 2015
by
Thomas Faller
Committed by
Alexandre Julliard
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix use of uninitialized memory.
parent
93a685ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
clipboard.c
dlls/winex11.drv/clipboard.c
+12
-1
No files found.
dlls/winex11.drv/clipboard.c
View file @
58773385
...
...
@@ -367,8 +367,19 @@ static void intern_atoms(void)
i
=
0
;
LIST_FOR_EACH_ENTRY
(
format
,
&
format_list
,
WINE_CLIPFORMAT
,
entry
)
if
(
!
format
->
drvData
)
{
GetClipboardFormatNameW
(
format
->
wFormatID
,
buffer
,
256
);
if
(
GetClipboardFormatNameW
(
format
->
wFormatID
,
buffer
,
256
)
>
0
)
{
/* use defined format name */
len
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
buffer
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
}
else
{
/* create a name in the same way as ntdll/atom.c:integral_atom_name
* which is normally used by GetClipboardFormatNameW
*/
static
const
WCHAR
fmt
[]
=
{
'#'
,
'%'
,
'u'
,
0
};
len
=
sprintfW
(
buffer
,
fmt
,
format
->
wFormatID
)
+
1
;
}
names
[
i
]
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
buffer
,
-
1
,
names
[
i
++
],
len
,
NULL
,
NULL
);
}
...
...
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