[Wine-patches] [eterhack] ntoskrnl.exe: Fix a potential uninitialized access to 'name'. (eterbug #4884)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Вт Окт 2 10:01:24 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 9b23362..8814610 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1969,7 +1969,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.1



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