diff options
author | wsoltys <wiso@xbmc.org> | 2012-08-20 11:25:41 -0700 |
---|---|---|
committer | wsoltys <wiso@xbmc.org> | 2012-08-20 11:25:41 -0700 |
commit | 5f38b2b346974827b5802d784767bcd4e73b6035 (patch) | |
tree | ecd12cdc88f508147c318ed9f829ba72414470d1 | |
parent | a0e378f4984f76c422f2b84a5aeaffa242327b44 (diff) | |
parent | 5d441d59a0b443093fe646f3c768d0ee176e4f59 (diff) |
Merge pull request #1311 from Karlson2k/CircularCache_fix_1
[WIN32]Fix CircularCache::Open
-rw-r--r-- | xbmc/filesystem/CircularCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/filesystem/CircularCache.cpp b/xbmc/filesystem/CircularCache.cpp index 30429d19c0..a0de8d4c10 100644 --- a/xbmc/filesystem/CircularCache.cpp +++ b/xbmc/filesystem/CircularCache.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008 Team XBMC + * Copyright (C) 2005-2012 Team XBMC * http://www.xbmc.org * * This Program is free software; you can redistribute it and/or modify @@ -51,7 +51,7 @@ int CCircularCache::Open() { #ifdef _WIN32 m_handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, m_size, NULL); - if(m_handle == INVALID_HANDLE_VALUE) + if(m_handle == NULL) return CACHE_RC_ERROR; m_buf = (uint8_t*)MapViewOfFile(m_handle, FILE_MAP_ALL_ACCESS, 0, 0, 0); #else |