From e958c86eb7d4df2316aec15627dbe64d3322b626 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Fri, 2 Jun 2023 12:08:30 +0200 Subject: [PATCH] Bugfix - receipt printing on widows fixed. --- shop/receiptgenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/receiptgenerator.cpp b/shop/receiptgenerator.cpp index e67cee3..5652361 100644 --- a/shop/receiptgenerator.cpp +++ b/shop/receiptgenerator.cpp @@ -61,9 +61,9 @@ void ReceiptGenerator::print() if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, nullptr)) { - docInfo.pDocName = (LPWSTR)"Uctenka"; + docInfo.pDocName = (LPWSTR)(L"Uctenka"); docInfo.pOutputFile = nullptr; - docInfo.pDatatype = (LPWSTR)"RAW"; + docInfo.pDatatype = (LPWSTR)(L"RAW"); dwJob = StartDocPrinter(hPrinter, 1, (LPBYTE)&docInfo); if (dwJob > 0)