[LOCALSPL, WINPRINT]

Bugfix: I want to dereference the pointer and then increment its value, not increment the pointer address.

svn path=/branches/colins-printing-for-freedom/; revision=68323
This commit is contained in:
Colin Finck 2015-06-30 16:02:26 +00:00
parent 6574de04e3
commit aef3b57f55
3 changed files with 5 additions and 5 deletions

View file

@ -131,7 +131,7 @@ EnumPrintProcessorDatatypesW(LPWSTR pName, LPWSTR pPrintProcessorName, DWORD Lev
// Also calculate the offset in the output buffer of the pointer to this datatype string.
*pCurrentOffset = *pcReturned * sizeof(DATATYPES_INFO_1W) + FIELD_OFFSET(DATATYPES_INFO_1W, pName);
*pcReturned++;
(*pcReturned)++;
pCurrentOffset++;
}
@ -198,7 +198,7 @@ OpenPrintProcessor(PWSTR pPrinterName, PPRINTPROCESSOROPENDATA pPrintProcessorOp
goto Cleanup;
}
// Create a new WINPRINT_HANDLE structure. and fill the relevant fields.
// Create a new WINPRINT_HANDLE structure and fill the relevant fields.
pHandle = DllAllocSplMem(sizeof(WINPRINT_HANDLE));
// Check what datatype was given.

View file

@ -943,7 +943,7 @@ LocalEnumJobs(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE
_LocalGetJobLevel2(pPrinterHandle, pJob, NULL, NULL, 0, pcbNeeded);
// We stop either when there are no more jobs in the list or when the caller didn't request more, whatever comes first.
*pcReturned++;
(*pcReturned)++;
pNode = pNode->Next[0];
}
@ -976,7 +976,7 @@ LocalEnumJobs(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE
goto Cleanup;
// We stop either when there are no more jobs in the list or when the caller didn't request more, whatever comes first.
*pcReturned++;
(*pcReturned)++;
pNode = pNode->Next[0];
}

View file

@ -347,7 +347,7 @@ _LocalEnumPrintersLevel1(DWORD Flags, LPWSTR Name, LPBYTE pPrinterEnum, DWORD cb
cbDescription = cchComputerName * sizeof(WCHAR) + cbName + cbComment + sizeof(WCHAR);
*pcbNeeded += sizeof(PRINTER_INFO_1W) + cchComputerName * sizeof(WCHAR) + cbName + cbComment + cbDescription;
*pcReturned++;
(*pcReturned)++;
}
// Check if the supplied buffer is large enough.