Skip to content

Conversation

@TsXor
Copy link

@TsXor TsXor commented Aug 11, 2023

The original GetMapInfo will left EventMapInfo in the stack of EventRecordCallback unchanged.
This fix changes the passing method of EventMapInfo from value to pointer.

@TsXor
Copy link
Author

TsXor commented Aug 11, 2023

So sorry but I didn't notice my fix will make it unable to print out event userdata property values on my previous test.

@TsXor
Copy link
Author

TsXor commented Aug 11, 2023

But I found something funny: the code can work normally if I replace EventMapInfo with NULL in the call to TdhFormatProperty.
It seems that my fix did what @Biswa96 originally want to do, which causes error.
Is this that famous "this program works thanks to bugs"?

@TsXor TsXor changed the title fix GetMapInfo in CallBacks.c remove GetMapInfo from EventRecordCallback in CallBacks.c Aug 11, 2023
also: fix typo of InstanceName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant