Commit c6a03a70 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

If PageSize/InputSlot entry doesn't contain an options translation

string use the option name instead.
parent e72a9b65
......@@ -613,8 +613,12 @@ PPD *PSDRV_ParsePPD(char *fname)
page->Name);
}
if(!page->FullName) {
page->FullName = tuple.opttrans;
tuple.opttrans = NULL;
if(tuple.opttrans) {
page->FullName = tuple.opttrans;
tuple.opttrans = NULL;
} else {
page->FullName = HEAP_strdupA( PSDRV_Heap, 0, page->Name );
}
}
if(!page->InvocationString) {
page->InvocationString = tuple.value;
......@@ -711,7 +715,10 @@ PPD *PSDRV_ParsePPD(char *fname)
if(tuple.opttrans) {
slot->FullName = tuple.opttrans;
tuple.opttrans = NULL;
} else {
slot->FullName = HEAP_strdupA( PSDRV_Heap, 0, slot->Name );
}
if(tuple.value) {
slot->InvocationString = tuple.value;
tuple.value = NULL;
......
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