home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.2.529 < prev    next >
Encoding:
Internet Message Format  |  2004-05-04  |  1.9 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.529 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.2.529 (extra)
  11. Problem:    VisVim only works for Admin.  Doing it for one user doesn't work.
  12.         (Alexandre Gouraud)
  13. Solution:   When registering the module fails, simply continue.
  14. Files:        src/VisVim/VisVim.cpp
  15.  
  16.  
  17. *** ../vim-6.2.528/src/VisVim/VisVim.cpp    Mon Jan  7 17:16:20 2002
  18. --- src/VisVim/VisVim.cpp    Tue May  4 12:31:29 2004
  19. ***************
  20. *** 86,92 ****
  21.       // Registers object, typelib and all interfaces in typelib
  22.       hRes = _Module.RegisterServer (TRUE);
  23.       if (FAILED (hRes))
  24. !         return hRes;
  25.   
  26.       _ATL_OBJMAP_ENTRY *pEntry = _Module.m_pObjMap;
  27.       CRegKey key;
  28. --- 86,97 ----
  29.       // Registers object, typelib and all interfaces in typelib
  30.       hRes = _Module.RegisterServer (TRUE);
  31.       if (FAILED (hRes))
  32. !         // Hack: When this fails we might be a normal user, while the
  33. !         // admin already registered the module.  Returning S_OK then
  34. !         // makes it work.  When the module was never registered it
  35. !         // will soon fail in another way.
  36. !         // old code: return hRes;
  37. !         return S_OK;
  38.   
  39.       _ATL_OBJMAP_ENTRY *pEntry = _Module.m_pObjMap;
  40.       CRegKey key;
  41. *** ../vim-6.2.528/src/version.c    Wed May  5 11:49:55 2004
  42. --- src/version.c    Wed May  5 11:53:56 2004
  43. ***************
  44. *** 639,640 ****
  45. --- 642,645 ----
  46.   {   /* Add new patch number below this line */
  47. + /**/
  48. +     529,
  49.   /**/
  50.  
  51. -- 
  52. hundred-and-one symptoms of being an internet addict:
  53. 113. You are asked about a bus schedule, you wonder if it is 16 or 32 bits.
  54.  
  55.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  56. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  57. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  58.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  59.