Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-6660

gdi32: GetOutlineTextMetricsW failing with ERROR_INSUFFICIENT_BUFFER

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.3.17
    • Win32SS
    • None
    • Sprint 1, October (0.3.15 first half)

    Description

      GetOutlineTextMetricsW called with a default OUTLINETEXTMETRICW struct+size fails with. ERROR_INSUFFICIENT_BUFFER.

      GetOutlineTextMetricsW after a while ends up in NtGdiGetOutlineTextMetricsInternalW (gdi\ntgdi\font.c), which is calling IntGetOutlineTextMetrics (gdi\ntgdi\freetype.c) to query size needed.

      This size returned includes the font name + family name sizes, in addition to the size of the OUTLINETEXTMETRICW struct.

      NtGdiGetOutlineTextMetricsInternalW responds by deciding "The buffer supplied is too small", and returns a failure.

      Attachments

        Issue Links

          Activity

            People

              ThePhysicist Timo Kreuzer
              tamlin Mike Nordell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: