mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 15:09:33 +02:00
* accept only valid guid as iid for com and dispinterfaces, resolves #12030; I'am not sure though if this isn't a feature used by people already
git-svn-id: trunk@12380 -
This commit is contained in:
parent
5432694059
commit
499c523346
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8162,6 +8162,7 @@ tests/webtbf/tw11849a.pp svneol=native#text/plain
|
||||
tests/webtbf/tw11862a.pp svneol=native#text/plain
|
||||
tests/webtbf/tw11970.pp svneol=native#text/plain
|
||||
tests/webtbf/tw12075.pp svneol=native#text/plain
|
||||
tests/webtbf/tw12303.pp svneol=native#text/plain
|
||||
tests/webtbf/tw12329.pp svneol=native#text/plain
|
||||
tests/webtbf/tw12365a.cfg svneol=native#text/plain
|
||||
tests/webtbf/tw12365a.pp svneol=native#text/plain
|
||||
|
@ -204,7 +204,6 @@ implementation
|
||||
current_objectdef.iidstr:=stringdup(strpas(tstringconstnode(p).value_str));
|
||||
valid:=string2guid(current_objectdef.iidstr^,current_objectdef.iidguid^);
|
||||
if (current_objectdef.objecttype in [odt_interfacecom,odt_dispinterface]) and
|
||||
not assigned(current_objectdef.iidguid) and
|
||||
not valid then
|
||||
Message(parser_e_improper_guid_syntax);
|
||||
include(current_objectdef.objectoptions,oo_has_valid_guid);
|
||||
|
9
tests/webtbf/tw12303.pp
Normal file
9
tests/webtbf/tw12303.pp
Normal file
@ -0,0 +1,9 @@
|
||||
{ %fail }
|
||||
{$mode objfpc}
|
||||
type
|
||||
IResourceTypeBlock = interface
|
||||
['9c497a71-8b3d-11dd-ad8b-0800200c9a66']
|
||||
end;
|
||||
|
||||
begin
|
||||
end.
|
Loading…
Reference in New Issue
Block a user