@@ -167,6 +167,7 @@ static bool get_device_path(MCStringRef p_path, MCStringRef &r_device_path)
167167// MW-2005-02-22: Make these global for opensslsocket.cpp
168168static Boolean wsainited = False;
169169HWND sockethwnd;
170+ HANDLE g_socket_wakeup;
170171
171172Boolean wsainit ()
172173{
@@ -2536,7 +2537,7 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
25362537
25372538 // What is the length of the path that was retrieved?
25382539 size_t t_path_len;
2539- /* UNCHECKED */ StringCchLength (t_buffer.Ptr (), t_buffer.Size (), &t_path_len);
2540+ /* UNCHECKED */ StringCchLengthW (t_buffer.Ptr (), t_buffer.Size (), &t_path_len);
25402541
25412542 /* UNCHECKED */ MCStringCreateWithChars (t_buffer.Ptr (), t_path_len, &t_retrieved_path);
25422543 }
@@ -2742,7 +2743,7 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
27422743
27432744 // Get the length of the returned path
27442745 size_t t_pathlen;
2745- if (t_wasfound && StringCchLength (t_buffer.Ptr (), t_buffer.Size (), &t_pathlen) != S_OK )
2746+ if (t_wasfound && StringCchLengthW (t_buffer.Ptr (), t_buffer.Size (), &t_pathlen) != S_OK )
27462747 return false ;
27472748
27482749 // Path was successfully retrieved
@@ -3476,7 +3477,7 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
34763477 do
34773478 {
34783479 // Don't list the current directory
3479- if (lstrcmpi (data.cFileName , L" ." ) == 0 )
3480+ if (lstrcmpiW (data.cFileName , L" ." ) == 0 )
34803481 continue ;
34813482
34823483 // Retrieve as many of the file attributes as Windows supports
@@ -4612,7 +4613,7 @@ struct MCWindowsDesktop: public MCSystemInterface, public MCWindowsSystemService
46124613 // If the launched process vanished before (4) it is treated as failure.
46134614
46144615 unichar_t t_parameters[64 ];
4615- wsprintf (t_parameters, L" -elevated-slave%08x" , GetCurrentThreadId ());
4616+ wsprintfW (t_parameters, L" -elevated-slave%08x" , GetCurrentThreadId ());
46164617
46174618 MCAutoStringRefAsWString t_cmd_wstr;
46184619 /* UNCHECKED */ t_cmd_wstr.Lock (MCcmd);
0 commit comments