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

gdi32: GetOutlineTextMetricsW failing with ERROR_INSUFFICIENT_BUFFER

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.3.17
    • Component/s: Win32SS
    • Labels:
      None
    • Module:
    • Sprint:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: