Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. Index: src/Edit.h
  2. ===================================================================
  3. --- src/Edit.h (revision 26)
  4. +++ src/Edit.h (working copy)
  5. @@ -21,7 +21,7 @@
  6.  
  7.  
  8. // extern "C" declarations of Scintilla functions
  9. -BOOL Scintilla_RegisterClasses(HINSTANCE);
  10. +BOOL Scintilla_RegisterClasses(void *hInstance);
  11. BOOL Scintilla_ReleaseResources();
  12.  
  13.  
  14. Index: src/Helpers.c
  15. ===================================================================
  16. --- src/Helpers.c (revision 26)
  17. +++ src/Helpers.c (working copy)
  18. @@ -1576,6 +1576,10 @@
  19. }
  20. else
  21. pmru->pszItems[0] = StrDup(pszFile);
  22. +
  23. + // Needed to make W7 jump lists work when NP2 is not explicitly associated
  24. + if (IsW7()) SHAddToRecentDocs(SHARD_PATHW, pszFile);
  25. +
  26. return(1);
  27. }
  28.  
  29. Index: src/Notepad2.c
  30. ===================================================================
  31. --- src/Notepad2.c (revision 26)
  32. +++ src/Notepad2.c (working copy)
  33. @@ -5781,7 +5781,7 @@
  34. if (IniSectionGetInt(pIniSection,L"NoFileVariables",0))
  35. fNoFileVariables = 1;
  36.  
  37. - IniSectionGetString(pIniSection,L"ShellAppUserModelID",L"(default)",
  38. + IniSectionGetString(pIniSection,L"ShellAppUserModelID",L"Notepad2",
  39. g_wchAppUserModelID,COUNTOF(g_wchAppUserModelID));
  40.  
  41. if (IniSectionGetInt(pIniSection,L"ShellUseSystemMRU",0))
  42. Index: src/Styles.c
  43. ===================================================================
  44. --- src/Styles.c (revision 26)
  45. +++ src/Styles.c (working copy)
  46. @@ -1738,7 +1738,7 @@
  47.  
  48. void Style_SetLexerFromFile(HWND hwnd,LPCWSTR lpszFile)
  49. {
  50. - LPWSTR lpszExt;
  51. + LPWSTR lpszExt = PathFindExtension(lpszFile);
  52. BOOL bFound = FALSE;
  53. PEDITLEXER pLexNew = pLexArray[iDefaultLexer];
  54. PEDITLEXER pLexSniffed;
  55. @@ -1777,7 +1777,6 @@
  56. }
  57. }
  58.  
  59. - lpszExt = PathFindExtension(lpszFile);
  60. if (!bFound && bAutoSelect && /* bAutoSelect == FALSE skips lexer search */
  61. (lpszFile && lstrlen(lpszFile) > 0 && *lpszExt)) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement