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

GDI32 TextOut[A|W] Bug: '\0' writes as square instead of nothing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Trivial
    • None
    • None
    • None

    Description

      While I was writing a test program for bug https://jira.reactos.org/browse/CORE-10876 (see my comment https://jira.reactos.org/browse/CORE-10876?focusedCommentId=81394&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-81394) I found a bug.
      How to reproduce:
      1. Make A TextOut call with full string size (including the '\0').

      Attachments

        1. NulText-Win10.png
          NulText-Win10.png
          3 kB
        2. NulText-Win2K3.png
          NulText-Win2K3.png
          3 kB
        3. NulText.zip
          25 kB
        4. snapshot80.png
          snapshot80.png
          3 kB
        5. snapshot86.png
          snapshot86.png
          3 kB
        6. nultext_ros75514.PNG
          nultext_ros75514.PNG
          7 kB
        7. text.c.patch
          4 kB
        8. text.c.patch
          5 kB
        9. image-2022-10-13-21-05-13-144.png
          image-2022-10-13-21-05-13-144.png
          7 kB
        10. NulText-Win7.png
          NulText-Win7.png
          3 kB

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              leha-bot leha-bot
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: