[REGEDIT]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 9 Nov 2014 23:31:26 +0000 (23:31 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 9 Nov 2014 23:31:26 +0000 (23:31 +0000)
- initialize ExportKeyPath so that parseKeyName is not fed garbage if exporting all
CORE-8771

svn path=/trunk/; revision=65351

reactos/base/applications/regedit/framewnd.c

index 3818673..8f7d488 100644 (file)
@@ -587,7 +587,7 @@ BOOL ExportRegistryFile(HWND hWnd)
 {
     BOOL bRet = FALSE;
     OPENFILENAME ofn;
 {
     BOOL bRet = FALSE;
     OPENFILENAME ofn;
-    WCHAR ExportKeyPath[_MAX_PATH];
+    WCHAR ExportKeyPath[_MAX_PATH] = {0};
     WCHAR Caption[128], szTitle[512], szText[512];
     HKEY hKeyRoot;
     LPCWSTR pszKeyPath;
     WCHAR Caption[128], szTitle[512], szText[512];
     HKEY hKeyRoot;
     LPCWSTR pszKeyPath;