[PATCH 2/3] kernel32: Remove NeedCurrentDirectoryForExePath partial stub.

Erich E. Hoover erich.e.hoover at gmail.com
Fri Jul 27 13:58:00 CDT 2018


From: "Erich E. Hoover" <erich.e.hoover at gmail.com>

NeedCurrentDirectoryForExePath does not use the registry, it only uses
the environment variable.  MSDN is warning not to use the registry for
this feature because the registry location may change or be out of date
for the current process.

Signed-off-by: Erich E. Hoover <erich.e.hoover at gmail.com>
---
 dlls/kernel32/path.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index a389743171..68fd672964 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -1948,8 +1948,7 @@ BOOL WINAPI NeedCurrentDirectoryForExePathW( LPCWSTR name )
                                      'I','n','E','x','e','P','a','t','h',0};
     WCHAR env_val;
 
-    /* MSDN mentions some 'registry location'. We do not use registry. */
-    FIXME("(%s): partial stub\n", debugstr_w(name));
+    TRACE("(%s)\n", debugstr_w(name));
 
     if (strchrW(name, '\\'))
         return TRUE;
-- 
2.14.1




More information about the wine-devel mailing list