aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wince/missing
diff options
context:
space:
mode:
authorJohannes Schickel2011-03-08 20:23:31 +0100
committerJohannes Schickel2011-03-08 20:23:31 +0100
commitb0cd614fd5a9b89765c7c3890a830abddc6d14f2 (patch)
tree0c60a3cbf0d2a5f2551b94099e4414d35163caa3 /backends/platform/wince/missing
parent0e7dc36792e8472f823af56a43f6d75aba3db29b (diff)
downloadscummvm-rg350-b0cd614fd5a9b89765c7c3890a830abddc6d14f2.tar.gz
scummvm-rg350-b0cd614fd5a9b89765c7c3890a830abddc6d14f2.tar.bz2
scummvm-rg350-b0cd614fd5a9b89765c7c3890a830abddc6d14f2.zip
WINCE: Silence/fix some warnings.
Diffstat (limited to 'backends/platform/wince/missing')
-rw-r--r--backends/platform/wince/missing/missing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/wince/missing/missing.cpp b/backends/platform/wince/missing/missing.cpp
index 92af3e6961..7de706b23f 100644
--- a/backends/platform/wince/missing/missing.cpp
+++ b/backends/platform/wince/missing/missing.cpp
@@ -63,7 +63,7 @@ void *bsearch(const void *key, const void *base, size_t nmemb,
else if (tmp > 0)
lo = mid + 1;
else
- return (void *)p;
+ return const_cast<void *>(p);
}
return NULL;
@@ -158,7 +158,7 @@ int _access(const char *path, int mode) {
// hits for files that don't exist. TRIPLE checking for the same fname
// seems to weed out those false positives.
// Exhibited in kyra engine.
- HANDLE h = FindFirstFile(fname, &ffd);
+ h = FindFirstFile(fname, &ffd);
FindClose(h);
if (h == INVALID_HANDLE_VALUE)
return -1; //Can't find file