markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 97 forks source link

Make Razor work with the OSI client again #173

Closed jaedan closed 3 years ago

jaedan commented 3 years ago

The string here is a char* in shared memory. C# assumes all memory returned to it was allocated by AllocHGlobal when doing default marshalling, so this crashes. It must have worked on earlier .net simply on accident.

Also the UsePostHSChanges can't be called until crypt is fully initialized. It's already called later on, so just delete the place where it is used too early.

kamronbatman commented 3 years ago

Tested and this works.