[Wine-patches] Fix pdo_info size.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Окт 13 13:24:21 MSD 2008


----------- следующая часть -----------
From 4bcd90eedbeb8c22a53e691cabf0d157d19fb634 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Mon, 13 Oct 2008 13:19:35 +0400
Subject: [PATCH] Fix pdo_info size.

---
 programs/winedevice/device.c |    2 +-
 programs/wineusb/main.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winedevice/device.c b/programs/winedevice/device.c
index f37678d..815baeb 100644
--- a/programs/winedevice/device.c
+++ b/programs/winedevice/device.c
@@ -292,7 +292,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
             NTSTATUS (WINAPI *AddDevice)( PDRIVER_OBJECT, PDEVICE_OBJECT ) =
                     driver_extension.AddDevice;
             PDEVICE_OBJECT pdev_obj = NULL;
-            UCHAR pdo_info[PATH_MAX + 3];
+            UCHAR pdo_info[2 * PATH_MAX + 3];
             data_size_t reply_size = 0;
 
             while (!reply_size)
diff --git a/programs/wineusb/main.c b/programs/wineusb/main.c
index 6787b2b..1aa80ee 100644
--- a/programs/wineusb/main.c
+++ b/programs/wineusb/main.c
@@ -107,7 +107,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
     if (set != INVALID_HANDLE_VALUE)
     {
         UNICODE_STRING drvname;
-        UCHAR pdo_info[PATH_MAX + 3] = {0};
+        UCHAR pdo_info[2 * PATH_MAX + 3] = {0};
         struct usb_device *dev;
         struct usb_bus *bus;
         SP_DEVINFO_DATA devInfo = { sizeof(devInfo), { 0 } };
-- 
1.5.6.5.GIT



Подробная информация о списке рассылки Wine-patches