[Wine-devel] Eter's patch is applied to winehq repo 04/05/13
builder-robot на etersoft.ru
builder-robot на etersoft.ru
Пт Апр 5 23:10:35 MSK 2013
New Etersoft's patches since last build time:
commit f63d59d640f48f5c734e09c5f0c4e322e9a6b3ee
Author: Tatyana Fokina <tatyana на etersoft.ru>
winspool.drv: Fix DocumentProperties with empty device name.
---
commit f63d59d640f48f5c734e09c5f0c4e322e9a6b3ee
Author: Tatyana Fokina <tatyana на etersoft.ru>
Date: Fri Apr 5 11:41:29 2013 +0400
winspool.drv: Fix DocumentProperties with empty device name.
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 141b2f4..fc74e76 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -2358,7 +2358,7 @@ LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
hWnd,hPrinter,pDeviceName,pDevModeOutput,pDevModeInput,fMode
);
- if(!pDeviceName) {
+ if(!pDeviceName || !*pDeviceName) {
LPCWSTR lpNameW = get_opened_printer_name(hPrinter);
if(!lpNameW) {
ERR("no name from hPrinter?\n");
diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index 1c98d4d..3990fb8 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -2653,6 +2653,7 @@ static void test_DocumentProperties(void)
HANDLE hprn;
LONG dm_size, ret;
DEVMODE *dm;
+ char empty_str[] = "";
if (!default_printer)
{
@@ -2678,6 +2679,9 @@ static void test_DocumentProperties(void)
ret = DocumentProperties(0, hprn, NULL, dm, dm, DM_OUT_BUFFER);
ok(ret == IDOK, "DocumentProperties ret value %d != expected IDOK\n", ret);
+ ret = DocumentProperties(0, hprn, empty_str, dm, dm, DM_OUT_BUFFER);
+ ok(ret == IDOK, "DocumentProperties ret value %d != expected IDOK\n", ret);
+
test_DEVMODE(dm, dm_size, default_printer);
HeapFree(GetProcessHeap(), 0, dm);
Подробная информация о списке рассылки Wine-devel