Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpset/ttset.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9318 by zmatsuo, Tue Jun 29 15:19:25 2021 UTC revision 9324 by zmatsuo, Tue Jun 29 15:20:20 2021 UTC
# Line 46  Line 46 
46  #include "tt_res.h"  #include "tt_res.h"
47  #include "servicenames.h"  #include "servicenames.h"
48  #include "codeconv.h"  #include "codeconv.h"
 #include "layer_for_unicode.h"  
49  #include "win32helper.h"  #include "win32helper.h"
50    
51  #define DllExport __declspec(dllexport)  #define DllExport __declspec(dllexport)
# Line 172  DWORD GetPrivateProfileStringAFileW(cons Line 171  DWORD GetPrivateProfileStringAFileW(cons
171          wchar_t *defW = ToWcharA(defA);          wchar_t *defW = ToWcharA(defA);
172          DWORD lenW_max = size;          DWORD lenW_max = size;
173          wchar_t *strW = malloc(sizeof(wchar_t) * lenW_max);          wchar_t *strW = malloc(sizeof(wchar_t) * lenW_max);
174          DWORD lenW = _GetPrivateProfileStringW(appW, keyW, defW, strW, lenW_max, filenameW);          DWORD lenW = GetPrivateProfileStringW(appW, keyW, defW, strW, lenW_max, filenameW);
175          free(appW);          free(appW);
176          free(keyW);          free(keyW);
177          free(defW);          free(defW);
# Line 202  BOOL WritePrivateProfileStringAFileW(con Line 201  BOOL WritePrivateProfileStringAFileW(con
201          wchar_t *appW = ToWcharA(appA);          wchar_t *appW = ToWcharA(appA);
202          wchar_t *keyW = ToWcharA(keyA);          wchar_t *keyW = ToWcharA(keyA);
203          wchar_t *strW = ToWcharA(strA);          wchar_t *strW = ToWcharA(strA);
204          BOOL r = _WritePrivateProfileStringW(appW, keyW, strW, filenameW);          BOOL r = WritePrivateProfileStringW(appW, keyW, strW, filenameW);
205          free(appW);          free(appW);
206          free(keyW);          free(keyW);
207          free(strW);          free(strW);
# Line 216  UINT GetPrivateProfileIntFileW(const cha Line 215  UINT GetPrivateProfileIntFileW(const cha
215  {  {
216          wchar_t *appW = ToWcharA(appA);          wchar_t *appW = ToWcharA(appA);
217          wchar_t *keyW = ToWcharA(keyA);          wchar_t *keyW = ToWcharA(keyA);
218          UINT r = _GetPrivateProfileIntW(appW, keyW, def, filenameW);          UINT r = GetPrivateProfileIntW(appW, keyW, def, filenameW);
219          free(appW);          free(appW);
220          free(keyW);          free(keyW);
221          return r;          return r;

Legend:
Removed from v.9318  
changed lines
  Added in v.9324

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26