Maarten Lankhorst <m.b.lankho...@gmail.com> writes: > + data.DataFlow = ppd->DataFlow; > + len = strlen(ppd->DeviceName)+1; > + data.DeviceName = HeapAlloc(GetProcessHeap(), 0, len); > + if (!data.DeviceName) > + return E_OUTOFMEMORY; > + MultiByteToWideChar(CP_ACP, 0, ppd->DeviceName, -1, data.DeviceName, len > );
The W length handling is broken. -- Alexandre Julliard julli...@winehq.org