Luck, or Unicode?
If the screenshot is correct, it's calling GetVersionExW, which is the wide-character version.
It's been a few years, but from memory, support for the wide-character functions was limited on Windows 95/98, and for a program calling GetVersionExW to even get loaded on those operating systems would require the application to have beeen explicitly built with support for Microsoft Layer for Unicode, and the UNICOWS.DLL file either on the system or "installed" at the same time.
Seems unlikely that whoever built it would have added MSLU support. It's not generally something you do by accident - you need to change the default link libraries for the compiler - so my money's on it not running on the Win95/98 systems, not that it did run and no-one noticed.