Differences From Artifact [9574967cdc8457be]:
- File
kilib/kl_wcmn.cpp
- 2011-02-23 13:30:53 - part of checkin [5128eecc9f] on branch trunk - Copied from private svn repository. (user: kinaba) [annotate]
To Artifact [f3baeef4f3c35434]:
- File
kilib/kl_wcmn.cpp
- 2017-05-30 13:07:57 - part of checkin [36ad977839] on branch trunk - 1.22: Enlarged the header search range (for SFX skip) for new UNLHA. (user: kinaba) [annotate]
74 { 74 {
75 psl->SetPath( kiPath(kiPath::Exe_name) ); 75 psl->SetPath( kiPath(kiPath::Exe_name) );
76 psl->SetWorkingDirectory( kiPath(kiPath::Exe,false) ); 76 psl->SetWorkingDirectory( kiPath(kiPath::Exe,false) );
77 77
78 IPersistFile* ppf; 78 IPersistFile* ppf;
79 if( SUCCEEDED(psl->QueryInterface(IID_IPersistFile,(void**)&ppf) 79 if( SUCCEEDED(psl->QueryInterface(IID_IPersistFile,(void**)&ppf)
80 { 80 {
81 WORD wsz[MAX_PATH]; | 81 WCHAR wsz[MAX_PATH];
82 kiPath lnkfile( at ); 82 kiPath lnkfile( at );
83 lnkfile += name, lnkfile += ".lnk"; 83 lnkfile += name, lnkfile += ".lnk";
84 ::MultiByteToWideChar(CP_ACP,0,lnkfile,-1,wsz,MAX_PATH); 84 ::MultiByteToWideChar(CP_ACP,0,lnkfile,-1,wsz,MAX_PATH);
85 ppf->Save(wsz,TRUE); 85 ppf->Save(wsz,TRUE);
86 ppf->Release(); 86 ppf->Release();
87 } 87 }
88 psl->Release(); 88 psl->Release();