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
3be7b8b6
Commit
3be7b8b6
authored
Nov 25, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Cast-qual warnings fix.
parent
b4174357
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
clipboard.c
dlls/winex11.drv/clipboard.c
+4
-3
No files found.
dlls/winex11.drv/clipboard.c
View file @
3be7b8b6
...
...
@@ -511,7 +511,8 @@ static WINE_CLIPFORMAT *X11DRV_CLIPBOARD_InsertClipboardFormat(LPCWSTR FormatNam
{
LPWINE_CLIPFORMAT
lpFormat
;
LPWINE_CLIPFORMAT
lpNewFormat
;
LPWSTR
new_name
;
/* allocate storage for new format entry */
lpNewFormat
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WINE_CLIPFORMAT
));
...
...
@@ -521,14 +522,14 @@ static WINE_CLIPFORMAT *X11DRV_CLIPBOARD_InsertClipboardFormat(LPCWSTR FormatNam
return
NULL
;
}
if
(
!
(
lpNewFormat
->
N
ame
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
FormatName
)
+
1
)
*
sizeof
(
WCHAR
))))
if
(
!
(
new_n
ame
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
FormatName
)
+
1
)
*
sizeof
(
WCHAR
))))
{
WARN
(
"No more memory for the new format name!
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
lpNewFormat
);
return
NULL
;
}
strcpyW
((
LPWSTR
)
lpNewFormat
->
N
ame
,
FormatName
);
lpNewFormat
->
Name
=
strcpyW
(
new_n
ame
,
FormatName
);
lpNewFormat
->
wFlags
=
0
;
lpNewFormat
->
wFormatID
=
GlobalAddAtomW
(
lpNewFormat
->
Name
);
lpNewFormat
->
drvData
=
prop
;
...
...
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