• src/conio/win32gdi.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Thursday, November 27, 2025 08:10:31
    https://gitlab.synchro.net/main/sbbs/-/commit/ca1ac24888f7a6ffece13c7d
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Possibly fix ticket 212

    And extra byte was being allocated to hold the UTF-16 string on
    Windows. Assuming this is to hold a terminating NUL, that needs
    to be two bytes since a NUL is two bytes in UTF-16.

    May fix ticket 212.
    --- SBBSecho 3.32-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thursday, November 27, 2025 08:11:39
    https://gitlab.synchro.net/main/sbbs/-/commit/273d0081e2c95b51f9d38645
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Revert "Possibly fix ticket 212"

    This reverts commit ca1ac24888f7a6ffece13c7de15a54e05e4b9a99.

    The size + 1 was being multiplied by sizeof(*LPWSTR), so that
    wasn't the issue.
    --- SBBSecho 3.32-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Friday, December 05, 2025 22:41:13
    https://gitlab.synchro.net/main/sbbs/-/commit/16458f3b0ba13c98bbd18fa2
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Add a dash of crazy to placate MSDN.
    --- SBBSecho 3.32-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Friday, December 05, 2025 23:53:18
    https://gitlab.synchro.net/main/sbbs/-/commit/151af2c066100dff02f06712
    Modified Files:
    src/conio/win32gdi.c
    Log Message:
    Almost, just turns out that CreatePipe() is useless.

    So, ReadFile() will work the same if you don't specify an OVERLAPPED
    structure regardless of a handle being overlapped or not. However, CreatePipe() doesn't create it overlapped, so we need to create our
    own CreatePipe() thing that does open the read end for overlapped.

    Also, fix some bugs in the overlapped bits and now it appears to work.

    Enjoy the lowered CPU utilization.
    --- SBBSecho 3.32-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)