1
0
forked from 0ad/0ad

increase size of error message buffer, don't complain about "invalid image hash" (known issue with aken.sys on Win7 x86).

fixes #1083

This was SVN commit r10834.
This commit is contained in:
janwas 2011-12-29 20:15:47 +00:00
parent ca56add718
commit 325c344ddd
2 changed files with 11 additions and 4 deletions

View File

@ -293,10 +293,17 @@ static void StartDriver(const OsPath& driverPathname)
switch(GetLastError())
{
case ERROR_SERVICE_ALREADY_RUNNING:
break; // ok, no action needed
// ok, no action needed
break;
case ERROR_ACCESS_DENIED:
break; // Win7, can't start service; must use aken_install.bat
default: // unexpected problem
// Win7, can't start service; must use aken_install.bat
break;
case ERROR_INVALID_IMAGE_HASH:
// Win7 x86 rejects our code signing certificate; must enable
// "test signing" mode via aken_install.bat
break;
default:
// unexpected problem
DEBUG_WARN_ERR(ERR::LOGIC);
break;
}

View File

@ -347,7 +347,7 @@ Status sys_StatusDescription(int user_err, wchar_t* buf, size_t max_chars)
return INFO::OK;
}
wchar_t message[200];
wchar_t message[400];
{
const LPCVOID source = 0; // ignored (we're not using FROM_HMODULE etc.)
const DWORD lang_id = 0; // look for neutral, then current locale