PackageManager: Options.xml
[reactos.git] / rosapps / packmgr / gui / main.c
index 5cfe8eb..727bfc1 100644 (file)
@@ -121,8 +121,9 @@ void Help (void)
        for(i=0; i<2000; i++)\r
        {\r
                buffer[i] = getc(file);\r
        for(i=0; i<2000; i++)\r
        {\r
                buffer[i] = getc(file);\r
-               if(!buffer[i]) break;\r
+               if(buffer[i]==EOF) break;\r
        }\r
        }\r
+       buffer[i] = 0;\r
 \r
        SetText(buffer);\r
 }\r
 \r
        SetText(buffer);\r
 }\r
@@ -245,9 +246,12 @@ int SetText (const char* text)
        {\r
                buffer[j] = text[i];\r
                if(buffer[j] == '\n')\r
        {\r
                buffer[j] = text[i];\r
                if(buffer[j] == '\n')\r
-                       buffer[++j] = '\r';\r
+               {\r
+                       buffer[j] = '\r';\r
+                       buffer[++j] = '\n';\r
+               }\r
        }\r
        }\r
-       buffer[i] = 0;\r
+       buffer[j] = 0;\r
 \r
        SetWindowTextA(hEdit, buffer);\r
 \r
 \r
        SetWindowTextA(hEdit, buffer);\r
 \r