File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -40,15 +40,9 @@ public static int ExecuteResource(IntPtr arg, int argLength)
4040 }
4141
4242 var libArgs = Marshal . PtrToStructure < LibArgs > ( arg ) ;
43- var resourcePath = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
44- ? Marshal . PtrToStringUni ( libArgs . ResourcePath )
45- : Marshal . PtrToStringUTF8 ( libArgs . ResourcePath ) ;
46- var resourceName = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
47- ? Marshal . PtrToStringUni ( libArgs . ResourceName )
48- : Marshal . PtrToStringUTF8 ( libArgs . ResourceName ) ;
49- var resourceMain = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
50- ? Marshal . PtrToStringUni ( libArgs . ResourceMain )
51- : Marshal . PtrToStringUTF8 ( libArgs . ResourceMain ) ;
43+ var resourcePath = Marshal . PtrToStringUTF8 ( libArgs . ResourcePath ) ;
44+ var resourceName = Marshal . PtrToStringUTF8 ( libArgs . ResourceName ) ;
45+ var resourceMain = Marshal . PtrToStringUTF8 ( libArgs . ResourceMain ) ;
5246
5347 var resourceDllPath = GetPath ( resourcePath , resourceMain ) ;
5448 var resourceAssemblyLoadContext = new ResourceAssemblyLoadContext ( resourceDllPath ) ;
You can’t perform that action at this time.
0 commit comments