Commit 71891e1f authored by Alexandre Julliard's avatar Alexandre Julliard

Authors: Huw D M Davies <hdavies@codeweavers.com>, Dmitry Timoshkov <dmitry@codeweavers.com>

psdrv's DeviceCapabilities should list DMBIN_AUTO as an available bin.
parent e1f6dc0d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment