winspool: Powerpoint XP expect a valid pointer on Win9x.
This commit is contained in:
parent
e56a302f7d
commit
449fa0d204
|
@ -4591,6 +4591,15 @@ static BOOL WINSPOOL_GetDriverInfoFromReg(
|
|||
if (di) di->pDependentFiles = (LPWSTR)strPtr;
|
||||
strPtr = (pDriverStrings) ? pDriverStrings + (*pcbNeeded) : NULL;
|
||||
}
|
||||
else if (GetVersion() & 0x80000000) {
|
||||
/* Powerpoint XP expects that pDependentFiles is always valid on win9x */
|
||||
size = 2 * ((unicode) ? sizeof(WCHAR) : 1);
|
||||
*pcbNeeded += size;
|
||||
if ((*pcbNeeded <= cbBuf) && strPtr) ZeroMemory(strPtr, size);
|
||||
|
||||
if (di) di->pDependentFiles = (LPWSTR)strPtr;
|
||||
strPtr = (pDriverStrings) ? pDriverStrings + (*pcbNeeded) : NULL;
|
||||
}
|
||||
|
||||
/* .pMonitorName is the optional Language Monitor */
|
||||
if (WINSPOOL_GetStringFromReg(hkeyDriver, MonitorW, strPtr, 0, &size, unicode)) {
|
||||
|
|
Loading…
Reference in New Issue