[Wine-patches] wineusb: Remove unneeded stop_event.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Ноя 28 17:52:04 MSK 2008


----------- следующая часть -----------
From 662ee5b90433b0a40f329ef42836db5537c3b3e8 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 28 Nov 2008 17:47:03 +0300
Subject: [PATCH] wineusb: Remove unneeded stop_event.

---
 programs/wineusb/main.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/programs/wineusb/main.c b/programs/wineusb/main.c
index d0957d0..18eae1d 100644
--- a/programs/wineusb/main.c
+++ b/programs/wineusb/main.c
@@ -49,7 +49,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(wineusb);
 
 static WCHAR service_nameW[] = {'w','i','n','e','u','s','b',0};
 static SERVICE_STATUS_HANDLE service_handle;
-static HANDLE stop_event;
 
 /* List of devices for which AddDevice was called */
 static struct list Devices = LIST_INIT(Devices);
@@ -105,7 +104,6 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_
         status.dwCurrentState     = SERVICE_STOP_PENDING;
         status.dwControlsAccepted = 0;
         SetServiceStatus( service_handle, &status );
-        SetEvent( stop_event );
         return NO_ERROR;
     default:
         status.dwCurrentState = SERVICE_RUNNING;
@@ -124,8 +122,6 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
 
     WINE_TRACE( "starting service\n" );
 
-    stop_event = CreateEventW( NULL, TRUE, FALSE, NULL );
-
     service_handle = RegisterServiceCtrlHandlerExW( service_nameW, service_handler, NULL );
     if (!service_handle)
         return;
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches