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