Mercurial > mplayer.hg
changeset 31823:73c4715af8c0
Avoid arithmetic on void * pointers.
author | reimar |
---|---|
date | Mon, 02 Aug 2010 17:30:00 +0000 |
parents | b9aa9b0d8e4b |
children | e26b1c667fd8 |
files | loader/win32.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/win32.c Mon Aug 02 17:27:20 2010 +0000 +++ b/loader/win32.c Mon Aug 02 17:30:00 2010 +0000 @@ -4748,7 +4748,7 @@ lpmem->dwAvailPageFile = 16*1024*1024; } expGetSystemInfo(&si); - lpmem->dwTotalVirtual = si.lpMaximumApplicationAddress-si.lpMinimumApplicationAddress; + lpmem->dwTotalVirtual = (uint8_t *)si.lpMaximumApplicationAddress-(uint8_t *)si.lpMinimumApplicationAddress; /* FIXME: we should track down all the already allocated VM pages and substract them, for now arbitrarily remove 64KB so that it matches NT */ lpmem->dwAvailVirtual = lpmem->dwTotalVirtual-64*1024; memcpy(&cached_memstatus,lpmem,sizeof(MEMORYSTATUS));