mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
widl: Don't assume that host void* is the same size as target void*
svn path=/trunk/; revision=38212
This commit is contained in:
parent
2f7e224584
commit
5c760c2d22
1 changed files with 7 additions and 1 deletions
|
@ -823,7 +823,13 @@ size_t type_memsize(const type_t *t, unsigned int *align)
|
|||
}
|
||||
else if (is_ptr(t) || is_conformant_array(t))
|
||||
{
|
||||
size = sizeof(void *);
|
||||
#if defined(TARGET_i386)
|
||||
size = 4;
|
||||
#elif defined(TARGET_amd64)
|
||||
size = 8;
|
||||
#else
|
||||
#error Unsupported CPU
|
||||
#endif
|
||||
if (size > *align) *align = size;
|
||||
}
|
||||
else switch (t->type)
|
||||
|
|
Loading…
Reference in a new issue