forked from len0rd/rockbox
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
This commit is contained in:
parent
75a11124f0
commit
e84837558b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue