From 058efcb682aa4907979c30df9ecd61ee6a084234 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Sun, 1 Aug 2010 20:17:09 +0900 Subject: [PATCH] Fix of nk32dll.c by va007219. --- nkf32dll.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nkf32dll.c b/nkf32dll.c index 1c48eda..0ec2a63 100644 --- a/nkf32dll.c +++ b/nkf32dll.c @@ -4,11 +4,11 @@ /*WIN32DLL*/ /* ‚±‚¿‚ç‚̃o[ƒWƒ‡ƒ“‚àXV‚µ‚Ä‚­‚¾‚³‚¢B */ -#define NKF_VERSIONW L"2.1.0" +#define NKF_VERSIONW L"2.1.1" /* NKF_VERSION ‚̃ƒCƒh•¶Žš */ -#define DLL_VERSION "2.1.0.0 0" +#define DLL_VERSION "2.1.1.0 2" /* DLL‚ª•Ô‚· */ -#define DLL_VERSIONW L"2.1.0.0 0" +#define DLL_VERSIONW L"2.1.1.0 2" /* DLL‚ª•Ô‚· DLL_VERSION ‚̃ƒCƒh•¶Žš */ /* nkf32.dll main */ @@ -458,6 +458,7 @@ void CALLBACK NkfFileConvert1(LPCSTR fName) DWORD len; BOOL sts; + options0(); len = GetTempPath(sizeof d,d); tempdname = malloc(len + 1); if ( tempdname == NULL ) return; @@ -499,6 +500,7 @@ BOOL WINAPI NkfFileConvert1SafeA(LPCSTR fName,DWORD nBufferLength /*in TCHARs*/) BOOL ret; LPCSTR p; + options0(); ret = FALSE; p = fName; for ( ;; ) { @@ -551,6 +553,7 @@ BOOL WINAPI NkfFileConvert1SafeW(LPCWSTR fName,DWORD nBufferLength /*in TCHARs*/ BOOL ret; LPCWSTR p; + options0(); ret = FALSE; p = fName; for ( ;; ) { @@ -599,6 +602,7 @@ void CALLBACK NkfFileConvert2(LPCSTR fInName,LPCSTR fOutName) { FILE *fin; + options0(); if ((fin = fopen(fInName, "rb")) == NULL) return; if((fout=fopen(fOutName, "wb")) == NULL) { fclose(fin); @@ -625,6 +629,7 @@ BOOL WINAPI NkfFileConvert2SafeA(LPCSTR fInName,DWORD fInBufferLength /*in TCHAR BOOL ret; LPCSTR p; + options0(); ret = FALSE; p = fInName; for ( ;; ) { @@ -667,6 +672,7 @@ BOOL WINAPI NkfFileConvert2SafeW(LPCWSTR fInName,DWORD fInBufferLength /*in TCHA BOOL ret; LPCWSTR p; + options0(); ret = FALSE; p = fInName; for ( ;; ) { -- 2.11.0