X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/f1cefe09d6df020ae8514956ddd75035c469ea7e..da86d54b4c387f78d19eedbee8ded54385a0d60a:/nt/addpm.c diff --git a/nt/addpm.c b/nt/addpm.c index 297fc4c5e8..c053810baa 100644 --- a/nt/addpm.c +++ b/nt/addpm.c @@ -1,13 +1,13 @@ /* Add entries to the GNU Emacs Program Manager folder. - Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007, + 2008 Free Software Foundation, Inc. This file is part of GNU Emacs. -GNU Emacs is free software; you can redistribute it and/or modify +GNU Emacs is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -15,9 +15,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with GNU Emacs; see the file COPYING. If not, write to -the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -Boston, MA 02110-1301, USA. */ +along with GNU Emacs. If not, see . */ /**************************************************************************** * @@ -32,6 +30,7 @@ Boston, MA 02110-1301, USA. */ #include #include #include +#include HDDEDATA CALLBACK DdeCallback (UINT uType, UINT uFmt, HCONV hconv, @@ -87,7 +86,7 @@ add_registry (path) affect the general operation of other installations of Emacs, and we are blindly overwriting the Start Menu entries already. */ - if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, "", + if (RegCreateKeyEx (HKEY_LOCAL_MACHINE, REG_APP_PATH, 0, "", REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hrootkey, NULL) == ERROR_SUCCESS) { @@ -96,7 +95,7 @@ add_registry (path) HKEY gtk_key = NULL; len = strlen (path) + 15; /* \bin\emacs.exe + terminator. */ - emacs_path = alloca (len); + emacs_path = (char *) alloca (len); sprintf (emacs_path, "%s\\bin\\emacs.exe", path); RegSetValueEx (hrootkey, NULL, 0, REG_SZ, emacs_path, len);