File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ wstr_to_sv(pTHX_ WCHAR *wstr)
203203 * characters for the characters not in the ANSI codepage.
204204 */
205205SV *
206- get_unicode_env (pTHX_ WCHAR * name )
206+ get_unicode_env (pTHX_ const WCHAR * name )
207207{
208208 SV * sv = NULL ;
209209 void * env ;
@@ -699,7 +699,7 @@ XS(w32_MsgBox)
699699 Safefree (title );
700700 }
701701 else {
702- char * title = "Perl" ;
702+ const char * title = "Perl" ;
703703 char * msg = SvPV_nolen (ST (0 ));
704704 if (items > 2 )
705705 title = SvPV_nolen (ST (2 ));
@@ -906,7 +906,7 @@ XS(w32_GetFolderPath)
906906 SV * sv ;
907907 HKEY hkey ;
908908 HKEY root = HKEY_CURRENT_USER ;
909- WCHAR * name = NULL ;
909+ const WCHAR * name = NULL ;
910910
911911 switch (folder ) {
912912 case CSIDL_ADMINTOOLS : name = L"Administrative Tools" ; break ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ LONGPATH(CHAR_T *path)
8181 *start = sep;
8282 if (fhand != INVALID_HANDLE_VALUE) {
8383 STRLEN len = FN_STRLEN (fdata.cFileName );
84- if ((STRLEN)( len < tmpbuf - tmpstart + sizeof (tmpbuf))) {
84+ if (len < (STRLEN)( tmpbuf - tmpstart + sizeof (tmpbuf))) {
8585 FN_STRCPY (tmpstart, fdata.cFileName );
8686 tmpstart += len;
8787 FindClose (fhand);
You can’t perform that action at this time.
0 commit comments