/*
Bacula® - The Network Backup Solution
- Copyright (C) 2004-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2004-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
{
#ifdef HAVE_WIN32
if (m_berrno & b_errno_win32) {
+ format_win32_message();
return (const char *)m_buf;
}
#else
{
#ifdef HAVE_WIN32
LPVOID msg;
- if (m_berrno & b_errno_win32) {
- FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- GetLastError(),
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- (LPTSTR)&msg,
- 0,
- NULL);
-
- pm_strcpy(&m_buf, (const char *)msg);
- LocalFree(msg);
- }
+ FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
+ FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL,
+ GetLastError(),
+ MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+ (LPTSTR)&msg,
+ 0,
+ NULL);
+ pm_strcpy(&m_buf, (const char *)msg);
+ LocalFree(msg);
#endif
}
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2004-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2004-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
{
m_berrno = errno;
m_buf = get_pool_memory(pool);
-#ifdef HAVE_WIN32
- format_win32_message();
-#endif
errno = m_berrno;
}
General:
09Jan09
+kes Add more debug output to VSS init.
+kes Attempt to correct win32 debug in berrno.
+09Jan09
kes Fix bug reported by Dan where make fails in clean of src/win32.
07Jan09
kes Fix bug #1212, SD is unable to recycle purged volumes. fstat()