Skip to content

Commit 03d02fc

Browse files
authored
Merge pull request #18 from perl-libwin32/jandubois-cleanup
Cleanup
2 parents fec15a1 + d1b3f62 commit 03d02fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Win32.xs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ wstr_to_sv(pTHX_ WCHAR *wstr)
203203
* characters for the characters not in the ANSI codepage.
204204
*/
205205
SV*
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;

longpath.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)