comparison src/if_ole.cpp @ 4352:04736b4030ec v7.3.925

updated for version 7.3.925 Problem: Typos in source files. Solution: Fix the typos. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Mon, 06 May 2013 04:24:17 +0200
parents a29301e7c05f
children d2a215e8d5b4
comparison
equal deleted inserted replaced
4351:e5137a5dcf15 4352:04736b4030ec
643 643
644 // Free memory 644 // Free memory
645 CoTaskMemFree(wGUID); 645 CoTaskMemFree(wGUID);
646 } 646 }
647 647
648 // Delete a key and all of its descendents 648 // Delete a key and all of its descendants
649 static void RecursiveDeleteKey(HKEY hKeyParent, const char *child) 649 static void RecursiveDeleteKey(HKEY hKeyParent, const char *child)
650 { 650 {
651 // Open the child 651 // Open the child
652 HKEY hKeyChild; 652 HKEY hKeyChild;
653 LONG result = RegOpenKeyEx(hKeyParent, child, 0, 653 LONG result = RegOpenKeyEx(hKeyParent, child, 0,
654 KEY_ALL_ACCESS, &hKeyChild); 654 KEY_ALL_ACCESS, &hKeyChild);
655 if (result != ERROR_SUCCESS) 655 if (result != ERROR_SUCCESS)
656 return; 656 return;
657 657
658 // Enumerate all of the decendents of this child 658 // Enumerate all of the descendants of this child
659 FILETIME time; 659 FILETIME time;
660 char buffer[1024]; 660 char buffer[1024];
661 DWORD size = 1024; 661 DWORD size = 1024;
662 662
663 while (RegEnumKeyEx(hKeyChild, 0, buffer, &size, NULL, 663 while (RegEnumKeyEx(hKeyChild, 0, buffer, &size, NULL,
664 NULL, NULL, &time) == S_OK) 664 NULL, NULL, &time) == S_OK)
665 { 665 {
666 // Delete the decendents of this child 666 // Delete the descendants of this child
667 RecursiveDeleteKey(hKeyChild, buffer); 667 RecursiveDeleteKey(hKeyChild, buffer);
668 size = 256; 668 size = 256;
669 } 669 }
670 670
671 // Close the child 671 // Close the child