Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix DAEMON-442 - Increase limit on log message size from 1024 to 4096
wsprintfW is limited to a buffer of size 1024. The switch to the newer functions allows (much) larger buffers to be used. 4096 seems like a reasonable limit.
- Loading branch information
Showing
4 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -25,6 +25,8 @@ __APXBEGIN_DECLS | ||
|
||
static LPCWSTR LOG_PATH_DEFAULT = L"\\LogFiles\\Apache"; | ||
|
||
#define LOG_MSG_MAX_LEN 4096 | ||
|
||
#define APX_LOGLOCK(file) \ | ||
APXMACRO_BEGIN \ | ||
DWORD _lmax = 0; \ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters