diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-05-15 21:42:02 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2006-05-15 21:42:02 +0000 |
commit | c59f032fec45b7439625b21e1eed719c40c46447 (patch) | |
tree | 656782cae1a8686c956b513719ccece00a245935 /epan/emem.c | |
parent | a23a5b603adb06934b756522d33e7338727ca296 (diff) |
Change return value checking to the true meaning of the spec:
"If the function succeeds, the return value is nonzero."
This may or may not solve bug 915.
svn path=/trunk/; revision=18168
Diffstat (limited to 'epan/emem.c')
-rw-r--r-- | epan/emem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/emem.c b/epan/emem.c index 183a25406c..c3f88d4445 100644 --- a/epan/emem.c +++ b/epan/emem.c @@ -268,9 +268,9 @@ emem_create_chunk(emem_chunk_t **free_list) { prot2 = (char *) ((((int) buf_end - (1 * pagesize)) / pagesize) * pagesize); ret = VirtualProtect(prot1, pagesize, PAGE_NOACCESS, &oldprot); - g_assert(ret == TRUE || versinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS); + g_assert(ret != 0 || versinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS); ret = VirtualProtect(prot2, pagesize, PAGE_NOACCESS, &oldprot); - g_assert(ret == TRUE || versinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS); + g_assert(ret != 0 || versinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS); npc->amount_free_init = prot2 - prot1 - pagesize; npc->amount_free = npc->amount_free_init; |