Authors: Huw D M Davies <hdavies@codeweavers.com>, Dmitry Timoshkov <dmitry@codeweavers.com>
psdrv's DeviceCapabilities should list DMBIN_AUTO as an available bin.
This commit is contained in:
parent
e1f6dc0dbd
commit
71891e1fd6
|
@ -405,6 +405,12 @@ DWORD WINAPI PSDRV_DeviceCapabilities16(LPCSTR lpszDevice, LPCSTR lpszPort,
|
||||||
WORD *wp = (WORD *)lpszOutput;
|
WORD *wp = (WORD *)lpszOutput;
|
||||||
int i = 0;
|
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++)
|
for(slot = pi->ppd->InputSlots; slot; slot = slot->next, i++)
|
||||||
if(lpszOutput != NULL)
|
if(lpszOutput != NULL)
|
||||||
*wp++ = slot->WinBin;
|
*wp++ = slot->WinBin;
|
||||||
|
@ -417,6 +423,13 @@ DWORD WINAPI PSDRV_DeviceCapabilities16(LPCSTR lpszDevice, LPCSTR lpszPort,
|
||||||
char *cp = lpszOutput;
|
char *cp = lpszOutput;
|
||||||
int i = 0;
|
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++)
|
for(slot = pi->ppd->InputSlots; slot; slot = slot->next, i++)
|
||||||
if(lpszOutput != NULL) {
|
if(lpszOutput != NULL) {
|
||||||
lstrcpynA(cp, slot->FullName, 24);
|
lstrcpynA(cp, slot->FullName, 24);
|
||||||
|
|
Loading…
Reference in New Issue