Showing
1 changed file
with
6 additions
and
6 deletions
| @@ -104,15 +104,15 @@ bool PrintJob::printPdf(std::string name, std::string printer) { | @@ -104,15 +104,15 @@ bool PrintJob::printPdf(std::string name, std::string printer) { | ||
| 104 | 104 | ||
| 105 | if (r != 1) { | 105 | if (r != 1) { |
| 106 | printing->onCompleted(this, false, ""); | 106 | printing->onCompleted(this, false, ""); |
| 107 | - DeleteDC(hDC); | ||
| 108 | - GlobalFree(hDevNames); | ||
| 109 | - ClosePrinter(hDevMode); | 107 | + DeleteDC(hDC); |
| 108 | + GlobalFree(hDevNames); | ||
| 109 | + ClosePrinter(hDevMode); | ||
| 110 | return true; | 110 | return true; |
| 111 | } | 111 | } |
| 112 | 112 | ||
| 113 | - hDC = pd.hDC; | ||
| 114 | - hDevMode = pd.hDevMode; | ||
| 115 | - hDevNames = pd.hDevNames; | 113 | + hDC = pd.hDC; |
| 114 | + hDevMode = pd.hDevMode; | ||
| 115 | + hDevNames = pd.hDevNames; | ||
| 116 | 116 | ||
| 117 | } else { | 117 | } else { |
| 118 | hDC = CreateDC(TEXT("WINSPOOL"), fromUtf8(printer).c_str(), NULL, NULL); | 118 | hDC = CreateDC(TEXT("WINSPOOL"), fromUtf8(printer).c_str(), NULL, NULL); |
-
Please register or login to post a comment