mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[WINESYNC] dbghelp: Don't use *_NULL constants.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id ee34cf365d34b23669c2ead03b040f09b7fb1e2b by Jacek Caban <jacek@codeweavers.com>
This commit is contained in:
parent
eed384bb16
commit
77888f05a4
3 changed files with 7 additions and 13 deletions
|
@ -1116,8 +1116,8 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
|
|||
break;
|
||||
}
|
||||
ptr += sizeof(dyn);
|
||||
} while (dyn.d_tag != DT_NULL);
|
||||
if (dyn.d_tag == DT_NULL) return ret;
|
||||
} while (dyn.d_tag);
|
||||
if (!dyn.d_tag) return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1138,8 +1138,8 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
|
|||
break;
|
||||
}
|
||||
ptr += sizeof(dyn);
|
||||
} while (dyn.d_tag != DT_NULL);
|
||||
if (dyn.d_tag == DT_NULL) return ret;
|
||||
} while (dyn.d_tag);
|
||||
if (!dyn.d_tag) return ret;
|
||||
}
|
||||
}
|
||||
elf_end_find(fmap);
|
||||
|
@ -1311,7 +1311,7 @@ static BOOL elf_search_auxv(const struct process* pcs, unsigned type, ULONG_PTR*
|
|||
{
|
||||
Elf64_auxv_t auxv;
|
||||
|
||||
while (ReadProcessMemory(pcs->handle, addr, &auxv, sizeof(auxv), NULL) && auxv.a_type != AT_NULL)
|
||||
while (ReadProcessMemory(pcs->handle, addr, &auxv, sizeof(auxv), NULL) && auxv.a_type)
|
||||
{
|
||||
if (auxv.a_type == type)
|
||||
{
|
||||
|
@ -1325,7 +1325,7 @@ static BOOL elf_search_auxv(const struct process* pcs, unsigned type, ULONG_PTR*
|
|||
{
|
||||
Elf32_auxv_t auxv;
|
||||
|
||||
while (ReadProcessMemory(pcs->handle, addr, &auxv, sizeof(auxv), NULL) && auxv.a_type != AT_NULL)
|
||||
while (ReadProcessMemory(pcs->handle, addr, &auxv, sizeof(auxv), NULL) && auxv.a_type)
|
||||
{
|
||||
if (auxv.a_type == type)
|
||||
{
|
||||
|
|
|
@ -50,12 +50,6 @@
|
|||
|
||||
#define IMAGE_NO_MAP ((void*)-1)
|
||||
|
||||
#ifndef __ELF__
|
||||
#ifndef SHT_NULL
|
||||
#define SHT_NULL 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* structure holding information while handling an ELF image
|
||||
* allows one by one section mapping for memory savings
|
||||
*/
|
||||
|
|
|
@ -4,4 +4,4 @@ files:
|
|||
include/dbghelp.h: sdk/include/psdk/dbghelp.h
|
||||
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
|
||||
tags:
|
||||
wine: 2534c2a2d22d3c610ffdfbb6b33e0b5176509aa1
|
||||
wine: ee34cf365d34b23669c2ead03b040f09b7fb1e2b
|
||||
|
|
Loading…
Reference in a new issue