From b87806dd994a9c937254107bca9dd6a69cf5c759 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Thu, 3 Apr 2003 14:32:53 +0000 Subject: [PATCH] Do not issue warning about long commandlines under NT --- docs/notework.txt | 3 +++ golded3/gedoss.cpp | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/docs/notework.txt b/docs/notework.txt index 5e56a10..56be6c9 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -12,6 +12,9 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ +- GoldED+/W32 will not issue warning about too long commandline under + NT. + + Added Husky compatible MSGID generation algorithm. The following keywords are added for configuration: diff --git a/golded3/gedoss.cpp b/golded3/gedoss.cpp index 0dd71bd..7ab74eb 100644 --- a/golded3/gedoss.cpp +++ b/golded3/gedoss.cpp @@ -32,6 +32,10 @@ #ifdef __UNIX__ #include #endif +#ifdef __WIN32__ +#include +extern OSVERSIONINFO WinVer; +#endif // ------------------------------------------------------------------ @@ -218,6 +222,9 @@ int ShellToDos(char* command, char* message, int cls, int cursor, int pause) { #endif #ifndef __UNIX__ + #ifdef __WIN32__ + if(WinVer.dwPlatformId != VER_PLATFORM_WIN32_NT) + #endif if(strlen(command) > 125) { w_info(" Warning: Command line longer than 125 characters! "); waitkeyt(10000);