Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unintalized variable bug in win32/io_readxy.c #433

Open
MyTDT-Mysoft opened this issue Dec 14, 2024 · 0 comments
Open

unintalized variable bug in win32/io_readxy.c #433

MyTDT-Mysoft opened this issue Dec 14, 2024 · 0 comments

Comments

@MyTDT-Mysoft
Copy link

MyTDT-Mysoft commented Dec 14, 2024

ok... there's a bug in freebasic rtlib in windows

at src/rtlib/win32/io_readxy.c
`
TCHAR character;

WORD attribute;
`
both should be initialized to 0... because if the ReadConsoleOutput* function fails, it's returning unintialized garbage instead of the 0 (to be consistent with behavior of gfx counterpart)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant