aboutsummaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-05-16 01:16:31 +0000
committerNIIBE Yutaka <[email protected]>2023-05-16 01:19:02 +0000
commit5c7c6065f32d7e85dcffbefb744ca4069900721d (patch)
treef634f1a10760d29f846a8645638700af9425113e /g10/photoid.c
parentcommon: Fix malloc nit in regression test. (diff)
downloadgnupg-5c7c6065f32d7e85dcffbefb744ca4069900721d.tar.gz
gnupg-5c7c6065f32d7e85dcffbefb744ca4069900721d.zip
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 <[email protected]>
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c14
1 files changed, 1 insertions, 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 <winsock2.h>
# endif
# include <windows.h>
-# 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";