From 5c7c6065f32d7e85dcffbefb744ca4069900721d Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 16 May 2023 10:16:31 +0900 Subject: [PATCH] w32: Remove support of Windows 95/98/Me. * g10/photoid.c (VER_PLATFORM_WIN32_WINDOWS): Remove fallback definition. (get_default_photo_command): Remove use of "start /w" for Windows 95. Signed-off-by: NIIBE Yutaka --- g10/photoid.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/g10/photoid.c b/g10/photoid.c index a866eb083..80fc35f8c 100644 --- a/g10/photoid.c +++ b/g10/photoid.c @@ -27,9 +27,6 @@ # include # endif # include -# ifndef VER_PLATFORM_WIN32_WINDOWS -# define VER_PLATFORM_WIN32_WINDOWS 1 -# endif #endif #include "gpg.h" @@ -375,16 +372,7 @@ static const char * get_default_photo_command(void) { #if defined(_WIN32) - OSVERSIONINFO osvi; - - memset(&osvi,0,sizeof(osvi)); - osvi.dwOSVersionInfoSize=sizeof(osvi); - GetVersionEx(&osvi); - - if(osvi.dwPlatformId==VER_PLATFORM_WIN32_WINDOWS) - return "start /w %i"; - else - return "!ShellExecute 400 %i"; + return "!ShellExecute 400 %i"; #elif defined(__APPLE__) /* OS X. This really needs more than just __APPLE__. */ return "open %I";