[Libreoffice-commits] core.git: vcl/win
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri Nov 27 12:20:47 UTC 2020
vcl/win/gdi/salprn.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8a27fbebc5bcb69a1b2664a5ffa31e5d8bb7d225
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Nov 27 10:54:48 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Nov 27 13:20:14 2020 +0100
GetLastError returns DWORD
Change-Id: I4e886d1d5f94f8a25591c41e9f03300cfba641dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106729
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx
index d552d17ed96b..0deb814880e4 100644
--- a/vcl/win/gdi/salprn.cxx
+++ b/vcl/win/gdi/salprn.cxx
@@ -1509,7 +1509,7 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
if ( nRet <= 0 )
{
- long nError = GetLastError();
+ DWORD nError = GetLastError();
if ( (nRet == SP_USERABORT) || (nRet == SP_APPABORT) || (nError == ERROR_PRINT_CANCELLED) || (nError == ERROR_CANCELLED) )
mnError = SalPrinterError::Abort;
else
More information about the Libreoffice-commits
mailing list