[Wine-patches] [2/6] [eter-2.0.0] ntoskrnl.exe: Fix a potential uninitialized access to 'name'. (eterbug #8744)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Пн Окт 15 06:56:41 MSK 2012


---
 dlls/ntoskrnl.exe/ntoskrnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 9b04a32..707beeb 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1966,7 +1966,7 @@ NTSTATUS WINAPI IoIsWdmVersionAvailable(UCHAR MajorVersion, UCHAR MinorVersion)
         GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT, *(void **)++ptr, &module ) &&
         GetModuleFileNameW( module, path, sizeof(path) ))
     {
-        p = path;
+        p = name = path;
         while ((p = strchrW( p, '\\' ))) name = ++p;
         if (!strcmpiW( name, grdusbW )) return FALSE;
     }
-- 
1.7.12.3



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