Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
imaxs committed Feb 17, 2022
1 parent 6317004 commit 9621d4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion HTMLconvert/Core/Services/WkHtmlTox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public unsafe static class WkHtmlTox
[DllImport(DLLNAME, CharSet = CHARSET)]
public static extern int wkhtmltoimage_get_global_setting(IntPtr settings, IntPtr name, IntPtr value, int vs);

[DllImport(DLLNAME, CharSet = CHARSET, CallingConvention = CallingConvention.StdCall)]
[DllImport(DLLNAME, CharSet = CHARSET, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr wkhtmltoimage_create_converter(IntPtr globalSettings, IntPtr data);

[DllImport(DLLNAME, CharSet = CHARSET, CallingConvention = CallingConvention.Cdecl)]
Expand Down
8 changes: 4 additions & 4 deletions HTMLconvert/HTMLconvert.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<RepositoryUrl>https://github.com/imaxs/HTMLconvert</RepositoryUrl>
<RepositoryType></RepositoryType>
<PackageReleaseNotes></PackageReleaseNotes>
<Version>1.0.0</Version>
<FileVersion>1.0.0</FileVersion>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageVersion>1.0.0</PackageVersion>
<Version>1.0.1</Version>
<FileVersion>1.0.1</FileVersion>
<AssemblyVersion>1.0.1</AssemblyVersion>
<PackageVersion>1.0.1</PackageVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand Down
2 changes: 1 addition & 1 deletion HTMLconvert/ImageTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public IntPtr CreateConverter(IntPtr globalSettings)

public IntPtr CreateConverter(IntPtr globalSettings, string htmlContent)
{
return WkHtmlTox.wkhtmltoimage_create_converter(globalSettings, ToPointer(htmlContent));
return WkHtmlTox.wkhtmltoimage_create_converter(globalSettings, Marshal.StringToHGlobalUni(htmlContent));
}

public void DestroyConverter(IntPtr converter)
Expand Down

0 comments on commit 9621d4f

Please # to comment.