mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[LOCALSPL] InitializePrinterDrivers(): Fix LocalGetPrinterDriverDirectory) call
Fix Clang-Cl
'...\printerdrivers.c(97,98): warning: variable 'cbBuf' is uninitialized when used here [-Wuninitialized]'
Addendum to 62c4b82
.
CORE-14306
This commit is contained in:
parent
99d776894a
commit
255807f768
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ InitializePrinterDrivers(VOID)
|
|||
StringCbCopyW(wszPrintUiFile, sizeof(wszPrintUiFile), szSysDir);
|
||||
StringCbCatW(wszPrintUiFile, sizeof(wszPrintUiFile), L"\\printui.dll");
|
||||
|
||||
if (!LocalGetPrinterDriverDirectory( NULL, (PWSTR)wszCurrentEnvironment, 1, (PBYTE)szSysDir, cbBuf, &cbBuf ) )
|
||||
if (!LocalGetPrinterDriverDirectory(NULL, (PWSTR)wszCurrentEnvironment, 1, (PBYTE)szSysDir, (DWORD)sizeof(szSysDir), &cbBuf))
|
||||
{
|
||||
ERR("LocalGetPrinterDriverDirectory failed\n");
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue