test failing on my win3k due to log record ~100k. will fix later

This commit is contained in:
Doug MacEachern 2005-05-13 21:16:02 +00:00
parent bcd097bb16
commit 5e4d3e4475

View File

@ -190,7 +190,14 @@ JNIEXPORT jobject SIGAR_JNI(win32_EventLog_read)
char buf[MAX_ERROR_LENGTH]; char buf[MAX_ERROR_LENGTH];
DWORD lastError = GetLastError(); DWORD lastError = GetLastError();
if (lastError == ERROR_INSUFFICIENT_BUFFER) {
/* XXX need to handle this */
sprintf(buf, "Buffer size (%d) too small (%d needed)",
sizeof(buffer), dwNeeded);
}
else {
sprintf(buf, "Error reading from the event log: %d", lastError); sprintf(buf, "Error reading from the event log: %d", lastError);
}
win32_throw_exception(env, buf); win32_throw_exception(env, buf);
return NULL; return NULL;
} }