Skip to content

Commit 9621d4f

Browse files
committed
Small fixes
1 parent 6317004 commit 9621d4f

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

HTMLconvert/Core/Services/WkHtmlTox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public unsafe static class WkHtmlTox
3535
[DllImport(DLLNAME, CharSet = CHARSET)]
3636
public static extern int wkhtmltoimage_get_global_setting(IntPtr settings, IntPtr name, IntPtr value, int vs);
3737

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

4141
[DllImport(DLLNAME, CharSet = CHARSET, CallingConvention = CallingConvention.Cdecl)]

HTMLconvert/HTMLconvert.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<RepositoryUrl>https://github.com/imaxs/HTMLconvert</RepositoryUrl>
1414
<RepositoryType></RepositoryType>
1515
<PackageReleaseNotes></PackageReleaseNotes>
16-
<Version>1.0.0</Version>
17-
<FileVersion>1.0.0</FileVersion>
18-
<AssemblyVersion>1.0.0</AssemblyVersion>
19-
<PackageVersion>1.0.0</PackageVersion>
16+
<Version>1.0.1</Version>
17+
<FileVersion>1.0.1</FileVersion>
18+
<AssemblyVersion>1.0.1</AssemblyVersion>
19+
<PackageVersion>1.0.1</PackageVersion>
2020
</PropertyGroup>
2121

2222
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

HTMLconvert/ImageTools.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public IntPtr CreateConverter(IntPtr globalSettings)
9898

9999
public IntPtr CreateConverter(IntPtr globalSettings, string htmlContent)
100100
{
101-
return WkHtmlTox.wkhtmltoimage_create_converter(globalSettings, ToPointer(htmlContent));
101+
return WkHtmlTox.wkhtmltoimage_create_converter(globalSettings, Marshal.StringToHGlobalUni(htmlContent));
102102
}
103103

104104
public void DestroyConverter(IntPtr converter)

0 commit comments

Comments
 (0)