diff options
author | Dave Chapman <dave@dchapman.com> | 2006-12-14 22:17:38 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-12-14 22:17:38 +0000 |
commit | e84837558b13f6bd23d21f3658bc095e1d47af40 (patch) | |
tree | 886d7ae8bcfb48a5c15116e5873855f428902b9e /tools | |
parent | 75a11124f0446823ef2aa48910d92f02b1a7d1bb (diff) | |
download | rockbox-e84837558b13f6bd23d21f3658bc095e1d47af40.tar.gz rockbox-e84837558b13f6bd23d21f3658bc095e1d47af40.zip |
Fix a problem when compiling with Dev-C++ - thanks to Paul Louden
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11766 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ipodpatcher/ipodio-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ipodpatcher/ipodio-win32.c b/tools/ipodpatcher/ipodio-win32.c index 34bf8d58c2..5292047180 100644 --- a/tools/ipodpatcher/ipodio-win32.c +++ b/tools/ipodpatcher/ipodio-win32.c @@ -148,7 +148,7 @@ int ipod_alloc_buffer(unsigned char** sectorbuf, int bufsize) { /* The ReadFile function requires a memory buffer aligned to a multiple of the disk sector size. */ - *sectorbuf = VirtualAlloc(NULL, bufsize, MEM_COMMIT, PAGE_READWRITE); + *sectorbuf = (unsigned char*)VirtualAlloc(NULL, bufsize, MEM_COMMIT, PAGE_READWRITE); if (*sectorbuf == NULL) { print_error(" Error allocating a buffer: "); return -1; |