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 9306 by zmatsuo, Sat Jun 12 15:29:32 2021 UTC revision 9309 by zmatsuo, Sat Jun 12 15:29:57 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"
49    #include "layer_for_unicode.h"
50  #include "win32helper.h"  #include "win32helper.h"
51    
52  #define DllExport __declspec(dllexport)  #define DllExport __declspec(dllexport)
# Line 171  DWORD GetPrivateProfileStringAFileW(cons Line 172  DWORD GetPrivateProfileStringAFileW(cons
172          wchar_t *defW = ToWcharA(defA);          wchar_t *defW = ToWcharA(defA);
173          DWORD lenW_max = size;          DWORD lenW_max = size;
174          wchar_t *strW = malloc(sizeof(wchar_t) * lenW_max);          wchar_t *strW = malloc(sizeof(wchar_t) * lenW_max);
175          DWORD lenW = GetPrivateProfileStringW(appW, keyW, defW, strW, lenW_max, filenameW);          DWORD lenW = _GetPrivateProfileStringW(appW, keyW, defW, strW, lenW_max, filenameW);
176          free(appW);          free(appW);
177          free(keyW);          free(keyW);
178          free(defW);          free(defW);
# Line 201  BOOL WritePrivateProfileStringAFileW(con Line 202  BOOL WritePrivateProfileStringAFileW(con
202          wchar_t *appW = ToWcharA(appA);          wchar_t *appW = ToWcharA(appA);
203          wchar_t *keyW = ToWcharA(keyA);          wchar_t *keyW = ToWcharA(keyA);
204          wchar_t *strW = ToWcharA(strA);          wchar_t *strW = ToWcharA(strA);
205          BOOL r = WritePrivateProfileStringW(appW, keyW, strW, filenameW);          BOOL r = _WritePrivateProfileStringW(appW, keyW, strW, filenameW);
206          free(appW);          free(appW);
207          free(keyW);          free(keyW);
208          free(strW);          free(strW);
# Line 215  UINT GetPrivateProfileIntFileW(const cha Line 216  UINT GetPrivateProfileIntFileW(const cha
216  {  {
217          wchar_t *appW = ToWcharA(appA);          wchar_t *appW = ToWcharA(appA);
218          wchar_t *keyW = ToWcharA(keyA);          wchar_t *keyW = ToWcharA(keyA);
219          UINT r = GetPrivateProfileIntW(appW, keyW, def, filenameW);          UINT r = _GetPrivateProfileIntW(appW, keyW, def, filenameW);
220          free(appW);          free(appW);
221          free(keyW);          free(keyW);
222          return r;          return r;

Legend:
Removed from v.9306  
changed lines
  Added in v.9309

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