< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp

Print this page

        

@@ -128,11 +128,11 @@
     DASSERT(printerName != NULL);
 
     DWORD cbBuf = *pcbBuf, dummyWord = 0;
 
     JavaStringBuffer printerNameBuf(env, printerName);
-    LPCTSTR lpcPrinterName = (LPCTSTR)printerNameBuf;
+    LPTSTR lpcPrinterName = (LPTSTR)printerNameBuf;
     DASSERT(lpcPrinterName != NULL);
 
     // For NT, first do a quick check of all remote and local printers.
     // This only allows us to search by name, though. PRINTER_INFO_4
     // doesn't support port searches. So, if the user has specified the
< prev index next >