minor format modifications to reduce diffs with latest wine sources to simplify updating.
[reactos.git] / reactos / tools / wmc / write.c
index 1dc7c1d..57371a5 100644 (file)
@@ -3,6 +3,19 @@
  *
  * Copyright 2000 Bertho A. Stultiens (BS)
  *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <windows.h>
@@ -88,7 +101,8 @@ static char *dup_u2c(int cp, const WCHAR *uc)
 //     if(!cpdef)
 //             internal_error(__FILE__, __LINE__, "Codepage %d not found (vanished?)", cp);
 //     if((len = cp_wcstombs(cpdef, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)
-       if((len = WideCharToMultiByte(cp, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)\r
+       if((len = WideCharToMultiByte(cp, 0, uc, unistrlen(uc)+1, cptr, len+1, NULL, NULL)) < 0)
+
                internal_error(__FILE__, __LINE__, "Buffer overflow? code %d.", len);
        return cptr;
 }
@@ -378,7 +392,8 @@ static char *make_string(WCHAR *uc, int len, int codepage)
 
 //             assert(cpdef != NULL);
 //             if((i = cp_wcstombs(cpdef, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)
-               if((i = WideCharToMultiByte(codepage, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)\r
+               if((i = WideCharToMultiByte(codepage, 0, uc, unistrlen(uc)+1, tmp, 2*len+1, NULL, NULL)) < 0)
+
                        internal_error(__FILE__, __LINE__, "Buffer overflow? code %d.", i);
                *cptr++ = ' ';
                *cptr++ = '"';
@@ -435,7 +450,8 @@ static char *make_string(WCHAR *uc, int len, int codepage)
 }
 
 
-static char *make_bin_string(WCHAR *uc, int len, int *retlen, int codepage)\r
+static char *make_bin_string(WCHAR *uc, int len, int *retlen, int codepage)
+
 {
        char *str = xmalloc(7 * len + 1);
        int i;