mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 10:49:27 +02:00
lcl: win32: ClipboardFormatToMimeType: fixed not raising an exception
git-svn-id: branches/fixes_1_8@55375 -
This commit is contained in:
parent
512384ae9d
commit
bc1b8985ad
@ -344,7 +344,7 @@ begin
|
||||
SetLength(Result,1000);
|
||||
FormatLength:= Windows.GetClipboardFormatName(FormatID, PChar(Result), 1000);
|
||||
if FormatLength = 0 then
|
||||
raise Exception.CreateFmt('Unknown clipboard format: %d', [FormatID]);
|
||||
exit(''); // do not raise an exception!
|
||||
SetLength(Result,FormatLength);
|
||||
{$IFDEF VerboseWin32Clipbrd}
|
||||
debugln('TWin32WidgetSet.ClipboardFormatToMimeType FormatID=',dbgs(FormatID),' ',Result);
|
||||
|
Loading…
Reference in New Issue
Block a user