Commit 46667959 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dwrite: Enable compilation with long types.

parent 86bc819f
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = dwrite.dll
IMPORTLIB = dwrite
UNIXLIB = dwrite.so
......
......@@ -1093,7 +1093,7 @@ static void get_number_substitutes(IDWriteNumberSubstitution *substitution, BOOL
case 1:
default:
if (value != 1)
WARN("Unknown IDIGITSUBSTITUTION value %u, locale %s.\n", value, debugstr_w(numbersubst->locale));
WARN("Unknown IDIGITSUBSTITUTION value %lu, locale %s.\n", value, debugstr_w(numbersubst->locale));
}
}
else
......@@ -1905,7 +1905,7 @@ static ULONG WINAPI dwritenumbersubstitution_AddRef(IDWriteNumberSubstitution *i
struct dwrite_numbersubstitution *object = impl_from_IDWriteNumberSubstitution(iface);
ULONG refcount = InterlockedIncrement(&object->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -1915,7 +1915,7 @@ static ULONG WINAPI dwritenumbersubstitution_Release(IDWriteNumberSubstitution *
struct dwrite_numbersubstitution *object = impl_from_IDWriteNumberSubstitution(iface);
ULONG refcount = InterlockedDecrement(&object->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
{
......@@ -2122,7 +2122,7 @@ static HRESULT fallback_get_fallback_font(struct dwrite_fontfallback *fallback,
hr = fallback_map_characters(*mapped_font, text, length, mapped_length);
if (FAILED(hr))
WARN("Mapping with fallback family %s failed, hr %#x.\n", debugstr_w(mapping->families[i]), hr);
WARN("Mapping with fallback family %s failed, hr %#lx.\n", debugstr_w(mapping->families[i]), hr);
if (!*mapped_length) {
IDWriteFont_Release(*mapped_font);
......@@ -2247,7 +2247,7 @@ static ULONG WINAPI customfontfallback_AddRef(IDWriteFontFallback1 *iface)
struct dwrite_fontfallback *fallback = impl_from_IDWriteFontFallback1(iface);
ULONG refcount = InterlockedIncrement(&fallback->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount;
}
......@@ -2257,7 +2257,7 @@ static ULONG WINAPI customfontfallback_Release(IDWriteFontFallback1 *iface)
struct dwrite_fontfallback *fallback = impl_from_IDWriteFontFallback1(iface);
ULONG refcount = InterlockedDecrement(&fallback->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount)
{
......@@ -2320,7 +2320,7 @@ static ULONG WINAPI fontfallbackbuilder_AddRef(IDWriteFontFallbackBuilder *iface
struct dwrite_fontfallback_builder *fallbackbuilder = impl_from_IDWriteFontFallbackBuilder(iface);
ULONG refcount = InterlockedIncrement(&fallbackbuilder->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -2331,7 +2331,7 @@ static ULONG WINAPI fontfallbackbuilder_Release(IDWriteFontFallbackBuilder *ifac
ULONG refcount = InterlockedDecrement(&fallbackbuilder->refcount);
size_t i;
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
{
......
......@@ -239,7 +239,7 @@ static ULONG WINAPI dwritetextformat_AddRef(IDWriteTextFormat3 *iface)
struct dwrite_textformat *format = impl_from_IDWriteTextFormat3(iface);
ULONG refcount = InterlockedIncrement(&format->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -249,7 +249,7 @@ static ULONG WINAPI dwritetextformat_Release(IDWriteTextFormat3 *iface)
struct dwrite_textformat *format = impl_from_IDWriteTextFormat3(iface);
ULONG refcount = InterlockedDecrement(&format->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
{
......@@ -772,7 +772,7 @@ static ULONG WINAPI dwritetrimmingsign_AddRef(IDWriteInlineObject *iface)
struct dwrite_trimmingsign *sign = impl_from_IDWriteInlineObject(iface);
ULONG refcount = InterlockedIncrement(&sign->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -782,7 +782,7 @@ static ULONG WINAPI dwritetrimmingsign_Release(IDWriteInlineObject *iface)
struct dwrite_trimmingsign *sign = impl_from_IDWriteInlineObject(iface);
ULONG refcount = InterlockedDecrement(&sign->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
{
......
......@@ -251,7 +251,7 @@ static ULONG WINAPI rendertarget_AddRef(IDWriteBitmapRenderTarget1 *iface)
struct rendertarget *target = impl_from_IDWriteBitmapRenderTarget1(iface);
ULONG refcount = InterlockedIncrement(&target->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount;
}
......@@ -261,7 +261,7 @@ static ULONG WINAPI rendertarget_Release(IDWriteBitmapRenderTarget1 *iface)
struct rendertarget *target = impl_from_IDWriteBitmapRenderTarget1(iface);
ULONG refcount = InterlockedDecrement(&target->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount)
{
......@@ -352,7 +352,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
RECT target_rect, bounds;
HRESULT hr;
TRACE("%p, %.8e, %.8e, %d, %p, %p, 0x%08x, %p.\n", iface, originX, originY,
TRACE("%p, %.8e, %.8e, %d, %p, %p, 0x%08lx, %p.\n", iface, originX, originY,
measuring_mode, run, params, color, bbox_ret);
SetRectEmpty(bbox_ret);
......@@ -364,7 +364,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
return E_INVALIDARG;
if (FAILED(hr = IDWriteFontFace_QueryInterface(run->fontFace, &IID_IDWriteFontFace3, (void **)&fontface))) {
WARN("Failed to get IDWriteFontFace2 interface, hr %#x.\n", hr);
WARN("Failed to get IDWriteFontFace2 interface, hr %#lx.\n", hr);
return hr;
}
......@@ -435,7 +435,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
gridfitmode, target->antialiasmode, originX, originY, &analysis);
if (FAILED(hr))
{
WARN("failed to create analysis instance, 0x%08x\n", hr);
WARN("failed to create analysis instance, 0x%08lx\n", hr);
return hr;
}
......@@ -445,7 +445,7 @@ static HRESULT WINAPI rendertarget_DrawGlyphRun(IDWriteBitmapRenderTarget1 *ifac
if (FAILED(hr) || IsRectEmpty(&bounds)) {
hr = IDWriteGlyphRunAnalysis_GetAlphaTextureBounds(analysis, DWRITE_TEXTURE_CLEARTYPE_3x1, &bounds);
if (FAILED(hr)) {
WARN("GetAlphaTextureBounds() failed, 0x%08x\n", hr);
WARN("GetAlphaTextureBounds() failed, 0x%08lx\n", hr);
IDWriteGlyphRunAnalysis_Release(analysis);
return hr;
}
......@@ -655,7 +655,7 @@ static ULONG WINAPI gdiinterop_AddRef(IDWriteGdiInterop1 *iface)
struct gdiinterop *interop = impl_from_IDWriteGdiInterop1(iface);
LONG refcount = InterlockedIncrement(&interop->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount;
}
......@@ -665,7 +665,7 @@ static ULONG WINAPI gdiinterop_Release(IDWriteGdiInterop1 *iface)
struct gdiinterop *interop = impl_from_IDWriteGdiInterop1(iface);
LONG refcount = InterlockedDecrement(&interop->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount)
{
......@@ -860,7 +860,7 @@ static HRESULT WINAPI gdiinterop1_CreateFontFromLOGFONT(IDWriteGdiInterop1 *ifac
else {
hr = IDWriteFactory5_GetSystemFontCollection((IDWriteFactory5 *)interop->factory, FALSE, (IDWriteFontCollection1 **)&collection, FALSE);
if (FAILED(hr)) {
ERR("failed to get system font collection: 0x%08x.\n", hr);
ERR("failed to get system font collection: 0x%08lx.\n", hr);
return hr;
}
}
......@@ -958,7 +958,7 @@ static ULONG WINAPI memresourcestream_AddRef(IDWriteFontFileStream *iface)
struct memresource_stream *stream = impl_from_IDWriteFontFileStream(iface);
ULONG refcount = InterlockedIncrement(&stream->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -968,7 +968,7 @@ static ULONG WINAPI memresourcestream_Release(IDWriteFontFileStream *iface)
struct memresource_stream *stream = impl_from_IDWriteFontFileStream(iface);
ULONG refcount = InterlockedDecrement(&stream->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
free(stream);
......
......@@ -582,7 +582,7 @@ static void layout_get_font_metrics(struct dwrite_textlayout *layout, IDWriteFon
if (is_layout_gdi_compatible(layout)) {
HRESULT hr = IDWriteFontFace_GetGdiCompatibleMetrics(fontface, emsize, layout->ppdip, &layout->transform, fontmetrics);
if (FAILED(hr))
WARN("failed to get compat metrics, 0x%08x\n", hr);
WARN("failed to get compat metrics, 0x%08lx\n", hr);
}
else
IDWriteFontFace_GetMetrics(fontface, fontmetrics);
......@@ -651,7 +651,7 @@ static HRESULT layout_resolve_fonts(struct dwrite_textlayout *layout)
if (FAILED(hr = IDWriteFactory5_GetSystemFontCollection((IDWriteFactory5 *)layout->factory, FALSE,
(IDWriteFontCollection1 **)&sys_collection, FALSE))) {
WARN("Failed to get system collection, hr %#x.\n", hr);
WARN("Failed to get system collection, hr %#lx.\n", hr);
return hr;
}
......@@ -661,7 +661,7 @@ static HRESULT layout_resolve_fonts(struct dwrite_textlayout *layout)
}
else {
if (FAILED(hr = IDWriteFactory7_GetSystemFontFallback(layout->factory, &fallback))) {
WARN("Failed to get system fallback, hr %#x.\n", hr);
WARN("Failed to get system fallback, hr %#lx.\n", hr);
goto fatal;
}
}
......@@ -691,7 +691,7 @@ static HRESULT layout_resolve_fonts(struct dwrite_textlayout *layout)
hr = IDWriteFont_CreateFontFace(font, &run->run.fontFace);
IDWriteFont_Release(font);
if (FAILED(hr)) {
WARN("Failed to create font face, hr %#x.\n", hr);
WARN("Failed to create font face, hr %#lx.\n", hr);
break;
}
......@@ -720,7 +720,7 @@ static HRESULT layout_resolve_fonts(struct dwrite_textlayout *layout)
&font,
&scale);
if (FAILED(hr)) {
WARN("%s: failed to map family %s, collection %p, hr %#x.\n", debugstr_rundescr(&run->descr),
WARN("%s: failed to map family %s, collection %p, hr %#lx.\n", debugstr_rundescr(&run->descr),
debugstr_w(range->fontfamily), range->collection, hr);
goto fatal;
}
......@@ -728,7 +728,7 @@ static HRESULT layout_resolve_fonts(struct dwrite_textlayout *layout)
hr = IDWriteFont_CreateFontFace(font, &run->run.fontFace);
IDWriteFont_Release(font);
if (FAILED(hr)) {
WARN("Failed to create font face, hr %#x.\n", hr);
WARN("Failed to create font face, hr %#lx.\n", hr);
goto fatal;
}
......@@ -942,7 +942,7 @@ static HRESULT layout_shape_get_glyphs(struct dwrite_textlayout *layout, struct
}
if (FAILED(hr))
WARN("%s: shaping failed, hr %#x.\n", debugstr_rundescr(&run->descr), hr);
WARN("%s: shaping failed, hr %#lx.\n", debugstr_rundescr(&run->descr), hr);
run->run.glyphIndices = run->glyphs;
run->descr.clusterMap = run->clustermap;
......@@ -1056,7 +1056,7 @@ static HRESULT layout_shape_get_positions(struct dwrite_textlayout *layout, stru
{
memset(run->advances, 0, run->glyphcount * sizeof(*run->advances));
memset(run->offsets, 0, run->glyphcount * sizeof(*run->offsets));
WARN("%s: failed to get glyph placement info, hr %#x.\n", debugstr_rundescr(&run->descr), hr);
WARN("%s: failed to get glyph placement info, hr %#lx.\n", debugstr_rundescr(&run->descr), hr);
}
if (SUCCEEDED(hr))
......@@ -1116,12 +1116,12 @@ static HRESULT layout_compute_runs(struct dwrite_textlayout *layout)
layout->cluster_count = 0;
if (FAILED(hr = layout_itemize(layout))) {
WARN("Itemization failed, hr %#x.\n", hr);
WARN("Itemization failed, hr %#lx.\n", hr);
return hr;
}
if (FAILED(hr = layout_resolve_fonts(layout))) {
WARN("Failed to resolve layout fonts, hr %#x.\n", hr);
WARN("Failed to resolve layout fonts, hr %#lx.\n", hr);
return hr;
}
......@@ -1164,7 +1164,7 @@ static HRESULT layout_compute_runs(struct dwrite_textlayout *layout)
}
if (FAILED(hr = layout_shape_run(layout, run)))
WARN("%s: shaping failed, hr %#x.\n", debugstr_rundescr(&run->descr), hr);
WARN("%s: shaping failed, hr %#lx.\n", debugstr_rundescr(&run->descr), hr);
/* baseline derived from font metrics */
layout_get_font_metrics(layout, run->run.fontFace, run->run.fontEmSize, &fontmetrics);
......@@ -1202,7 +1202,7 @@ static HRESULT layout_compute(struct dwrite_textlayout *layout)
if (FAILED(hr = IDWriteTextAnalyzer2_AnalyzeLineBreakpoints(analyzer,
(IDWriteTextAnalysisSource *)&layout->IDWriteTextAnalysisSource1_iface,
0, layout->len, (IDWriteTextAnalysisSink *)&layout->IDWriteTextAnalysisSink1_iface)))
WARN("Line breakpoints analysis failed, hr %#x.\n", hr);
WARN("Line breakpoints analysis failed, hr %#lx.\n", hr);
}
free(layout->actual_breakpoints);
......@@ -1290,7 +1290,7 @@ static void layout_get_erun_font_metrics(struct dwrite_textlayout *layout, struc
&layout->transform,
metrics);
if (FAILED(hr))
WARN("failed to get font metrics, 0x%08x\n", hr);
WARN("failed to get font metrics, 0x%08lx\n", hr);
}
else
IDWriteFontFace_GetMetrics(erun->run->u.regular.run.fontFace, metrics);
......@@ -1926,7 +1926,7 @@ static void layout_add_line(struct dwrite_textlayout *layout, UINT32 first_clust
append_trimming_run = TRUE;
}
else
WARN("Failed to get trimming sign metrics, lines won't be trimmed, hr %#x.\n", hr);
WARN("Failed to get trimming sign metrics, lines won't be trimmed, hr %#lx.\n", hr);
width = trimmed_width + sign_metrics.width;
}
......@@ -2862,7 +2862,7 @@ static ULONG WINAPI dwritetextlayout_AddRef(IDWriteTextLayout4 *iface)
struct dwrite_textlayout *layout = impl_from_IDWriteTextLayout4(iface);
ULONG refcount = InterlockedIncrement(&layout->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount;
}
......@@ -2872,7 +2872,7 @@ static ULONG WINAPI dwritetextlayout_Release(IDWriteTextLayout4 *iface)
struct dwrite_textlayout *layout = impl_from_IDWriteTextLayout4(iface);
ULONG refcount = InterlockedDecrement(&layout->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount)
{
......@@ -3715,7 +3715,7 @@ static void layout_get_erun_bbox(struct dwrite_textlayout *layout, struct layout
if (FAILED(hr = compute_glyph_origins(&glyph_run, layout->measuringmode, baseline_origin, &layout->transform, origins)))
{
WARN("Failed to compute glyph origins, hr %#x.\n", hr);
WARN("Failed to compute glyph origins, hr %#lx.\n", hr);
free(origins);
return;
}
......@@ -3751,7 +3751,7 @@ static void layout_get_inlineobj_bbox(struct dwrite_textlayout *layout, struct l
HRESULT hr;
if (FAILED(hr = IDWriteInlineObject_GetMetrics(run->object, &metrics))) {
WARN("Failed to get inline object metrics, hr %#x.\n", hr);
WARN("Failed to get inline object metrics, hr %#lx.\n", hr);
memset(bbox, 0, sizeof(*bbox));
return;
}
......@@ -5303,7 +5303,7 @@ static ULONG WINAPI dwritetypography_AddRef(IDWriteTypography *iface)
struct dwrite_typography *typography = impl_from_IDWriteTypography(iface);
ULONG refcount = InterlockedIncrement(&typography->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -5313,7 +5313,7 @@ static ULONG WINAPI dwritetypography_Release(IDWriteTypography *iface)
struct dwrite_typography *typography = impl_from_IDWriteTypography(iface);
ULONG refcount = InterlockedDecrement(&typography->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
{
......
......@@ -104,7 +104,7 @@ static ULONG WINAPI renderingparams_AddRef(IDWriteRenderingParams3 *iface)
struct renderingparams *params = impl_from_IDWriteRenderingParams3(iface);
ULONG refcount = InterlockedIncrement(&params->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -114,7 +114,7 @@ static ULONG WINAPI renderingparams_Release(IDWriteRenderingParams3 *iface)
struct renderingparams *params = impl_from_IDWriteRenderingParams3(iface);
ULONG refcount = InterlockedDecrement(&params->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
free(params);
......@@ -299,7 +299,7 @@ static ULONG WINAPI localizedstrings_AddRef(IDWriteLocalizedStrings *iface)
struct localizedstrings *strings = impl_from_IDWriteLocalizedStrings(iface);
ULONG refcount = InterlockedIncrement(&strings->refcount);
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
return refcount;
}
......@@ -310,7 +310,7 @@ static ULONG WINAPI localizedstrings_Release(IDWriteLocalizedStrings *iface)
ULONG refcount = InterlockedDecrement(&strings->refcount);
size_t i;
TRACE("%p, refcount %d.\n", iface, refcount);
TRACE("%p, refcount %ld.\n", iface, refcount);
if (!refcount)
{
......@@ -715,7 +715,7 @@ static IDWriteFontCollection1 *factory_get_system_collection(struct dwritefactor
if (FAILED(hr = get_system_fontcollection(&factory->IDWriteFactory7_iface, &collection)))
{
WARN("Failed to create system font collection, hr %#x.\n", hr);
WARN("Failed to create system font collection, hr %#lx.\n", hr);
return NULL;
}
......@@ -754,7 +754,7 @@ static ULONG WINAPI dwritefactory_AddRef(IDWriteFactory7 *iface)
struct dwritefactory *factory = impl_from_IDWriteFactory7(iface);
ULONG refcount = InterlockedIncrement(&factory->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
return refcount;
}
......@@ -764,7 +764,7 @@ static ULONG WINAPI dwritefactory_Release(IDWriteFactory7 *iface)
struct dwritefactory *factory = impl_from_IDWriteFactory7(iface);
ULONG refcount = InterlockedDecrement(&factory->refcount);
TRACE("%p, refcount %u.\n", iface, refcount);
TRACE("%p, refcount %lu.\n", iface, refcount);
if (!refcount)
release_dwritefactory(factory);
......@@ -968,7 +968,7 @@ HRESULT factory_get_cached_fontface(IDWriteFactory7 *iface, IDWriteFontFile * co
if (cached_key_size == key_size && !memcmp(cached_key, key, key_size))
{
if (FAILED(hr = IDWriteFontFace5_QueryInterface(cached->fontface, riid, obj)))
WARN("Failed to get %s from fontface, hr %#x.\n", debugstr_guid(riid), hr);
WARN("Failed to get %s from fontface, hr %#lx.\n", debugstr_guid(riid), hr);
TRACE("returning cached fontface %p\n", cached->fontface);
break;
......@@ -1335,7 +1335,7 @@ static HRESULT WINAPI dwritefactory1_GetEudcFontCollection(IDWriteFactory7 *ifac
if (FAILED(hr = get_eudc_fontcollection(iface, &eudc_collection)))
{
*collection = NULL;
WARN("Failed to get EUDC collection, hr %#x.\n", hr);
WARN("Failed to get EUDC collection, hr %#lx.\n", hr);
return hr;
}
......@@ -1634,7 +1634,7 @@ static HRESULT create_system_fontset(IDWriteFactory7 *factory, REFIID riid, void
if (i != j && !wcsicmp(paths[i], paths[j])) continue;
if (FAILED(hr = IDWriteFontSetBuilder2_AddFontFile(builder, paths[i])) && hr != DWRITE_E_FILEFORMAT)
WARN("Failed to add font file, hr %#x, path %s.\n", hr, debugstr_w(paths[i]));
WARN("Failed to add font file, hr %#lx, path %s.\n", hr, debugstr_w(paths[i]));
j = i;
}
......
......@@ -1777,7 +1777,7 @@ void dwrite_cmap_init(struct dwrite_cmap *cmap, IDWriteFontFile *file, unsigned
/* For fontface stream is already available and preset. */
if (!cmap->stream && FAILED(hr = get_filestream_from_file(file, &cmap->stream)))
{
WARN("Failed to get file stream, hr %#x.\n", hr);
WARN("Failed to get file stream, hr %#lx.\n", hr);
goto failed;
}
......@@ -2274,7 +2274,7 @@ static void get_name_record_locale(enum OPENTYPE_PLATFORM_ID platform, USHORT la
case OPENTYPE_PLATFORM_WIN:
if (!LCIDToLocaleName(MAKELCID(lang_id, SORT_DEFAULT), locale, locale_len, 0))
{
FIXME("failed to get locale name for lcid=0x%08x\n", MAKELCID(lang_id, SORT_DEFAULT));
FIXME("failed to get locale name for lcid=0x%08lx\n", MAKELCID(lang_id, SORT_DEFAULT));
wcscpy(locale, L"en-US");
}
break;
......@@ -2488,7 +2488,7 @@ static HRESULT opentype_get_font_strings_from_meta(const struct file_stream_desc
version = table_read_be_dword(&meta, 0);
if (version != 1)
{
WARN("Unexpected meta table version %d.\n", version);
WARN("Unexpected meta table version %ld.\n", version);
goto end;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment