vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Tue Jan 26 
20:10:57 2016 +0100| [14f4034b5cce5d5a914d5fa6fdcf5eb7f28b9f35] | committer: 
Jean-Baptiste Kempf

Win32: remove win2k screensave hack

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14f4034b5cce5d5a914d5fa6fdcf5eb7f28b9f35
---

 modules/video_output/msw/common.c |   15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/modules/video_output/msw/common.c 
b/modules/video_output/msw/common.c
index e60a639..71a79e7 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -722,21 +722,6 @@ static void DisableScreensaver(vout_display_t *vd)
         SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0,
                              &sys->i_spi_screensaveactive, 0);
 
-        if (LOWORD(GetVersion()) == 0x0005) {
-            /* If this is NT 5.0 (i.e., Win2K), we need to hack around
-             * KB318781 (see http://support.microsoft.com/kb/318781) */
-
-            HKEY hKeyCP = NULL;
-
-            if (ERROR_SUCCESS == RegOpenKeyEx(HKEY_CURRENT_USER,
-                                              TEXT("Control Panel\\Desktop"),
-                                              0, KEY_QUERY_VALUE, &hKeyCP) &&
-                ERROR_SUCCESS != RegQueryValueEx(hKeyCP, TEXT("SCRNSAVE.EXE"),
-                                                 NULL, NULL, NULL, NULL)) {
-                sys->i_spi_screensaveactive = FALSE;
-            }
-        }
-
         if (FALSE != sys->i_spi_screensaveactive) {
             SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, NULL, 0);
         }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to