From d49bd2997b34c53630d2b6f7e450762d786f9576 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 4 Oct 2012 15:33:13 +0000 Subject: (svn r24572) -Fix: do not cast away some other consts --- src/os/windows/win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/windows/win32.cpp b/src/os/windows/win32.cpp index dc38a69b3..065ed3737 100644 --- a/src/os/windows/win32.cpp +++ b/src/os/windows/win32.cpp @@ -239,7 +239,7 @@ bool FiosIsValidFile(const char *path, const struct dirent *ent, struct stat *sb * http://www.gamedev.net/community/forums/topic.asp?topic_id=294070&whichpage=1� * XXX - not entirely correct, since filetimes on FAT aren't UTC but local, * this won't entirely be correct, but we use the time only for comparsion. */ - sb->st_mtime = (time_t)((*(uint64*)&fd->ftLastWriteTime - posix_epoch_hns) / 1E7); + sb->st_mtime = (time_t)((*(const uint64*)&fd->ftLastWriteTime - posix_epoch_hns) / 1E7); sb->st_mode = (fd->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)? S_IFDIR : S_IFREG; return true; @@ -560,7 +560,7 @@ bool GetClipboardContents(char *buffer, size_t buff_len) cbuf = GetClipboardData(CF_UNICODETEXT); ptr = (const char*)GlobalLock(cbuf); - const char *ret = convert_from_fs((wchar_t*)ptr, buffer, buff_len); + const char *ret = convert_from_fs((const wchar_t*)ptr, buffer, buff_len); GlobalUnlock(cbuf); CloseClipboard(); -- cgit v1.2.3-70-g09d2