A new version of the Nintendo VirtualBoy emulator Reality Boy was released.
Quote:
Re: Updated Reality Boy
Geschrieben am: 18.02.2010 03:40
Actually, in my version of the front-end at least, the file paths (emu and ROM) are stored in 2048-byte strings. But, I kinda goofed because the command-line options (minus the emu executable path) is stored in a 512-byte string... :doh:
Microsoft´s docs for ShellExecute don´t say if there is a limit to the lengths of strings passed to it, so I´m going to increase it to 4K or so and test it out with a really long path.
EDIT: I increased the path variable size and also now use _snprintf() so there shouldn´t be anymore buffer overruns even if the size is exceeded (it´ll just cut off the last few options). I tested it on:
"Cocuments and Settings\My DocumentsReally Big, Long, and also Huge Test PathWhich is also nested quite deeplyAnd is used to store only a single Virtual Boy ROM ImageSpace Invaders Virtual Collection (J) [!].vb" and it worked a treat
Attached you should find a new executable to test.