Since we use tabs for indentation, convert to one line instead
This commit is contained in:
parent
6688f44084
commit
6067c776c5
1 changed files with 2 additions and 5 deletions
|
@ -47,13 +47,10 @@ Log::Log()
|
||||||
dwError = RegCreateKey( HKEY_LOCAL_MACHINE, path.c_str(), &hRegKey );
|
dwError = RegCreateKey( HKEY_LOCAL_MACHINE, path.c_str(), &hRegKey );
|
||||||
|
|
||||||
GetModuleFileName( NULL, filePath, MAX_PATH );
|
GetModuleFileName( NULL, filePath, MAX_PATH );
|
||||||
dwError = RegSetValueEx( hRegKey, L"EventMessageFile", 0,
|
dwError = RegSetValueEx( hRegKey, L"EventMessageFile", 0, REG_EXPAND_SZ, (PBYTE) filePath, (DWORD)(wcslen(filePath) + 1) * sizeof TCHAR );
|
||||||
REG_EXPAND_SZ, (PBYTE) filePath,
|
|
||||||
(DWORD)(wcslen(filePath) + 1) * sizeof TCHAR );
|
|
||||||
|
|
||||||
DWORD dwTypes = LOG_DEBUG | LOG_NOTICE | LOG_WARNING | LOG_ERR;
|
DWORD dwTypes = LOG_DEBUG | LOG_NOTICE | LOG_WARNING | LOG_ERR;
|
||||||
dwError = RegSetValueEx( hRegKey, L"TypesSupported",
|
dwError = RegSetValueEx( hRegKey, L"TypesSupported", 0, REG_DWORD, (LPBYTE) &dwTypes, sizeof dwTypes );
|
||||||
0, REG_DWORD, (LPBYTE) &dwTypes, sizeof dwTypes );
|
|
||||||
|
|
||||||
RegCloseKey(hRegKey);
|
RegCloseKey(hRegKey);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue