From 71891e1fd6a058fa087f28a42bd34b4129b801ef Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 28 Jan 2001 23:13:25 +0000 Subject: [PATCH] Authors: Huw D M Davies , Dmitry Timoshkov psdrv's DeviceCapabilities should list DMBIN_AUTO as an available bin. --- dlls/wineps/driver.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dlls/wineps/driver.c b/dlls/wineps/driver.c index 3988fc10f9..93b49fecc1 100644 --- a/dlls/wineps/driver.c +++ b/dlls/wineps/driver.c @@ -405,6 +405,12 @@ DWORD WINAPI PSDRV_DeviceCapabilities16(LPCSTR lpszDevice, LPCSTR lpszPort, WORD *wp = (WORD *)lpszOutput; int i = 0; + /* We explicitly list DMBIN_AUTO first; actually while win9x does this + win2000 lists DMBIN_FORMSOURCE instead. */ + i++; + if(lpszOutput != NULL) + *wp++ = DMBIN_AUTO; + for(slot = pi->ppd->InputSlots; slot; slot = slot->next, i++) if(lpszOutput != NULL) *wp++ = slot->WinBin; @@ -417,6 +423,13 @@ DWORD WINAPI PSDRV_DeviceCapabilities16(LPCSTR lpszDevice, LPCSTR lpszPort, char *cp = lpszOutput; int i = 0; + /* Add an entry corresponding to DMBIN_AUTO, see DC_BINS */ + i++; + if(lpszOutput != NULL) { + strcpy(cp, "Automatically Select"); + cp += 24; + } + for(slot = pi->ppd->InputSlots; slot; slot = slot->next, i++) if(lpszOutput != NULL) { lstrcpynA(cp, slot->FullName, 24);