summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-27 10:54:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-27 13:20:14 +0100
commit8a27fbebc5bcb69a1b2664a5ffa31e5d8bb7d225 (patch)
tree3353a22e94107f6fc0315ca13913e223dcd0b427 /vcl/win
parenta63087f58090418b6a7c8b046698b372ddc903cf (diff)
GetLastError returns DWORD
Change-Id: I4e886d1d5f94f8a25591c41e9f03300cfba641dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106729 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/salprn.cxx2
1 files changed, 1 insertions, 1 deletions
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