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
9b84bb66
Commit
9b84bb66
authored
Mar 04, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Mar 04, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetClipboardData16 might return an invalid global handle (spotted by
Corel).
parent
09f8a751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
event.c
windows/x11drv/event.c
+4
-8
No files found.
windows/x11drv/event.c
View file @
9b84bb66
...
@@ -1057,16 +1057,13 @@ static Atom EVENT_SelectionRequest_STRING( Window requestor, Atom target, Atom r
...
@@ -1057,16 +1057,13 @@ static Atom EVENT_SelectionRequest_STRING( Window requestor, Atom target, Atom r
itemFmtName
,
CF_TEXT
,
CLIPBOARD_GetFormatName
(
CF_TEXT
));
itemFmtName
,
CF_TEXT
,
CLIPBOARD_GetFormatName
(
CF_TEXT
));
TSXFree
(
itemFmtName
);
TSXFree
(
itemFmtName
);
if
(
!
CLIPBOARD_IsPresent
(
CF_TEXT
)
)
{
rprop
=
None
;
goto
END
;
}
hText
=
GetClipboardData16
(
CF_TEXT
);
hText
=
GetClipboardData16
(
CF_TEXT
);
if
(
!
hText
)
return
None
;
text
=
GlobalLock16
(
hText
);
text
=
GlobalLock16
(
hText
);
if
(
!
text
)
return
None
;
size
=
GlobalSize16
(
hText
);
size
=
GlobalSize16
(
hText
);
/* remove carriage returns */
/* remove carriage returns */
lpstr
=
(
char
*
)
HEAP_xalloc
(
GetProcessHeap
(),
0
,
size
--
);
lpstr
=
(
char
*
)
HEAP_xalloc
(
GetProcessHeap
(),
0
,
size
--
);
...
@@ -1088,7 +1085,6 @@ static Atom EVENT_SelectionRequest_STRING( Window requestor, Atom target, Atom r
...
@@ -1088,7 +1085,6 @@ static Atom EVENT_SelectionRequest_STRING( Window requestor, Atom target, Atom r
GlobalUnlock16
(
hText
);
GlobalUnlock16
(
hText
);
HeapFree
(
GetProcessHeap
(),
0
,
lpstr
);
HeapFree
(
GetProcessHeap
(),
0
,
lpstr
);
END:
return
rprop
;
return
rprop
;
}
}
...
...
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