diff src/unexnt.c @ 304:c6de09ad3017 r21-0b50

Import from CVS: tag r21-0b50
author cvs
date Mon, 13 Aug 2007 10:41:12 +0200
parents 70ad99077275
children aabb7f5b1c81
line wrap: on
line diff
--- a/src/unexnt.c	Mon Aug 13 10:40:50 2007 +0200
+++ b/src/unexnt.c	Mon Aug 13 10:41:12 2007 +0200
@@ -97,10 +97,8 @@
 DWORD  data_size = UNINIT_LONG;
 
 /* Cached info about the .bss section in the executable.  */
-#ifndef DUMP_SEPARATE_SECTION
-PUCHAR bss_start = 0;
-DWORD  bss_size = 0;
-#endif
+PUCHAR bss_start = UNINIT_PTR;
+DWORD  bss_size = UNINIT_LONG;
 
 #ifdef HAVE_NTGUI
 HINSTANCE hinst = NULL;
@@ -479,7 +477,7 @@
     }
 
 #ifndef DUMP_SEPARATE_SECTION
-  if (!bss_start)
+  if (bss_start == UNINIT_PTR)
     {
       /* Starting with MSVC 4.0, the .bss section has been eliminated
 	 and appended virtually to the end of the .data section.  Our
@@ -496,6 +494,8 @@
 	+ data_section->VirtualAddress;
       bss_size = (char*)&my_ebss - (char*)bss_start;
     }
+#else
+  bss_size = 0;
 #endif
 }