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
This commit is contained in:
phoglund@webrtc.org 2012-02-07 16:16:52 +00:00
parent 646fa2c5f2
commit 9d9ad88ba5
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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 = "/";