VS 2019 build fixed.

This commit is contained in:
2023-05-29 16:27:10 +02:00
parent 7082648122
commit 46b2098ffc
12 changed files with 44 additions and 47 deletions
+4 -4
View File
@@ -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)