There has been discusison on the forum for errors dealing with the retrieving of event logs on Win32 servers. Below is a patch which fixes the error where a NULL is being passed into your ASM strcpy command. This will provide a short term ability to get users working. I have attached a copy of a new binary which has this patch applied.
Code:
--- eventlog.cpp Fri Jun 02 14:04:45 2006
+++ eventlog.cpp.patch Fri Jun 02 12:23:13 2006
@@ -246,12 +246,18 @@
MAX_MSG_LENGTH, /* maximum size of the message buffer */
aInsertStrs); /* array of insert strings for the message */
- strcpy(pMessage,msgBuf); // copy message
- err = 0;
+ LOG_DEBUG_INFO("s",msgBuf);
- /* Free the buffer that FormatMessage allocated for us. */
- if(msgBuf) LocalFree((HLOCAL) msgBuf);
+ if (msgBuf)
+ {
+ strcpy(pMessage,msgBuf); // copy message
+ err = 0;
+
+ /* Free the buffer that FormatMessage allocated for us. */
+ LocalFree((HLOCAL) msgBuf);
+ }
FreeLibrary(hLib);
+
}
}
Comment