From 9d9ad88ba51682d91ed3dade6d711fb26c9073a2 Mon Sep 17 00:00:00 2001 From: "phoglund@webrtc.org" Date: Tue, 7 Feb 2012 16:16:52 +0000 Subject: [PATCH] Fixed remaining warnings. BUG= TEST= Review URL: https://webrtc-codereview.appspot.com/393001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1626 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/system_wrappers/source/event_win.cc | 6 +++--- test/testsupport/fileutils_unittest.cc | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/system_wrappers/source/event_win.cc b/src/system_wrappers/source/event_win.cc index 4a6dc9de24..efcb5af870 100644 --- a/src/system_wrappers/source/event_win.cc +++ b/src/system_wrappers/source/event_win.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. + * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source @@ -30,12 +30,12 @@ EventWindows::~EventWindows() bool EventWindows::Set() { // Note: setting an event that is already set has no effect. - return SetEvent(_event); + return SetEvent(_event) == 1 ? true : false; } bool EventWindows::Reset() { - return ResetEvent(_event); + return ResetEvent(_event) == 1 ? true : false; } EventTypeWrapper EventWindows::Wait(unsigned long maxTime) diff --git a/test/testsupport/fileutils_unittest.cc b/test/testsupport/fileutils_unittest.cc index a500a07743..1b76b3caec 100644 --- a/test/testsupport/fileutils_unittest.cc +++ b/test/testsupport/fileutils_unittest.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. + * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source @@ -17,6 +17,7 @@ #include "gtest/gtest.h" #ifdef WIN32 +#define chdir _chdir static const char* kPathDelimiter = "\\"; #else static const char* kPathDelimiter = "/";