Skip to content

Commit

Permalink
tabwords.txt encoding fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
konelav committed May 30, 2020
1 parent a90fbfc commit 41405c2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sources/smcDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,7 @@ CSmcDoc::~CSmcDoc()
strWords += word + L"\r\n";
}

HANDLE hFile;
hFile = CreateFile(strTabwordsFile, GENERIC_READ| GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, NULL, NULL );
if ( hFile!=INVALID_HANDLE_VALUE ) {
DWORD Written;
WriteFile(hFile , strWords, strWords.GetLength() , &Written, NULL );
CloseHandle(hFile);
}
write_file_contents(strTabwordsFile, strWords, strWords.GetLength());
}
}

Expand Down

0 comments on commit 41405c2

Please sign in to comment.