< prev index next >
src/java.desktop/windows/native/libawt/windows/WPrinterJob.cpp
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -659,11 +659,11 @@
}
}
}
JNU_ReleaseStringPlatformChars(env, printer, printerName);
- JNU_ReleaseStringPlatformChars(env, printer, printerPort);
+ JNU_ReleaseStringPlatformChars(env, port, printerPort);
return resolutionArray;
}
static BOOL IsDCPostscript( HDC hDC )
@@ -802,11 +802,11 @@
DeleteDC(pdc);
}
RESTORE_CONTROLWORD
JNU_ReleaseStringPlatformChars(env, printer, printerName);
- JNU_ReleaseStringPlatformChars(env, printer, printerPort);
+ JNU_ReleaseStringPlatformChars(env, port, printerPort);
return ret;
}
#define GETDEFAULT_ERROR -50
< prev index next >