Index: reactos/base/applications/notepad/text.c =================================================================== --- reactos/base/applications/notepad/text.c (revision 40701) +++ reactos/base/applications/notepad/text.c (working copy) @@ -64,6 +64,8 @@ *ppszText = NULL; *pdwTextLen = 0; + + int ic=0; dwSize = GetFileSize(hFile, NULL); if (dwSize == INVALID_FILE_SIZE) @@ -76,7 +78,11 @@ if (!ReadFile(hFile, pBytes, dwSize, &dwSize, NULL)) goto done; dwPos = 0; - + /* Converting NULL bytes to spaces */ + for(ic=0; ic