1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Do not use the screen code when running under Windows NT.

committer: mfx <mfx> 978092789 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2000-12-29 12:26:29 +00:00
parent 5a497e2dac
commit 8a77a477df

View File

@ -311,6 +311,15 @@ static int init(screen_t *this, int fd)
if (getPage(this) != 0)
return -1;
#if 1
/* check for Windows NT/2000 */
{
unsigned v = _get_dos_version(1);
if (v == 0x0532)
return -1;
}
#endif
cols = ScreenCols();
rows = ScreenRows();
mode = getMode(this);