VS 2019 build fixed.
This commit is contained in:
@@ -59,11 +59,11 @@ void ReceiptGenerator::print()
|
||||
DWORD dwBytes;
|
||||
BOOL bStatus = FALSE;
|
||||
|
||||
if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, NULL))
|
||||
if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, nullptr))
|
||||
{
|
||||
docInfo.pDocName = L"Uctenka";
|
||||
docInfo.pOutputFile = NULL;
|
||||
docInfo.pDatatype = L"RAW";
|
||||
docInfo.pDocName = (LPWSTR)"Uctenka";
|
||||
docInfo.pOutputFile = nullptr;
|
||||
docInfo.pDatatype = (LPWSTR)"RAW";
|
||||
|
||||
dwJob = StartDocPrinter(hPrinter, 1, (LPBYTE)&docInfo);
|
||||
if (dwJob > 0)
|
||||
|
||||
Reference in New Issue
Block a user