[18-Feb-97 andrewi] I now believe my comment above to be incorrect,
since it was based on a misunderstanding of how locking calls are
implemented and used on Unix. */
-//#define DISABLE_DIRECT_ACCESS
+/* #define DISABLE_DIRECT_ACCESS */
#include <fcntl.h>
#endif /* WINDOWSNT */
nt_header = (PIMAGE_NT_HEADERS) ((char *) dos_header + dos_header->e_lfanew);
nt_header->OptionalHeader.CheckSum = 0;
-// nt_header->FileHeader.TimeDateStamp = time (NULL);
-// dos_header->e_cp = size / 512;
-// nt_header->OptionalHeader.SizeOfImage = size;
+ /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
+ /* dos_header->e_cp = size / 512; */
+ /* nt_header->OptionalHeader.SizeOfImage = size; */
pfnCheckSumMappedFile = (void *) GetProcAddress (hImagehelp, "CheckSumMappedFile");
if (pfnCheckSumMappedFile)
{
-// nt_header->FileHeader.TimeDateStamp = time (NULL);
+ /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
pfnCheckSumMappedFile (out_file.file_base,
out_file.size,
&headersum,
nt_header = (PIMAGE_NT_HEADERS) ((char *) dos_header + dos_header->e_lfanew);
nt_header->OptionalHeader.CheckSum = 0;
-// nt_header->FileHeader.TimeDateStamp = time (NULL);
-// dos_header->e_cp = size / 512;
-// nt_header->OptionalHeader.SizeOfImage = size;
+ /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
+ /* dos_header->e_cp = size / 512; */
+ /* nt_header->OptionalHeader.SizeOfImage = size; */
pfnCheckSumMappedFile = (void *) GetProcAddress (hImagehelp, "CheckSumMappedFile");
if (pfnCheckSumMappedFile)
{
-// nt_header->FileHeader.TimeDateStamp = time (NULL);
+ /* nt_header->FileHeader.TimeDateStamp = time (NULL); */
pfnCheckSumMappedFile (out_file.file_base,
out_file.size,
&headersum,