[PATCH] This patch fixes a major aspi regression which appeared after 0ff2c06c1d26bf3b6f717140d5753ba3c82295a8. The patch itself was correct but the size of the wPortsName buffer was too small. Other places in the same file use a length of 15 while this one used 11 while in general at least 12 is needed. This fixes all apps that use ASPI.

Roderick Colenbrander thunderbird2k at gmx.net
Wed Nov 5 07:50:54 CST 2008


---
 dlls/wnaspi32/aspi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wnaspi32/aspi.c b/dlls/wnaspi32/aspi.c
index c511524..2505a25 100644
--- a/dlls/wnaspi32/aspi.c
+++ b/dlls/wnaspi32/aspi.c
@@ -122,7 +122,7 @@ int ASPI_GetNumControllers(void)
 {
     HKEY hkeyScsi, hkeyPort;
     DWORD i = 0, numPorts, num_ha = 0;
-    WCHAR wPortName[11];
+    WCHAR wPortName[15];
 
     if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, wDevicemapScsi, 0,
         KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS, &hkeyScsi) != ERROR_SUCCESS )
-- 
1.5.3.4


--========GMX237181225892985671403--



More information about the wine-patches mailing list