]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/utils.cpp
proper braces avoiding potential dangling else resulting from expansion
[wxWidgets.git] / src / msw / utils.cpp
index 9c2d7590511975fed55ad84ba47f047cde8a2d26..292efc5dd1f4fb6464965f65585b42f5857a9cad 100644 (file)
@@ -141,7 +141,7 @@ bool wxGetHostName(wxChar *buf, int maxSize)
             !regKey.QueryValue(wxT("Name"), hostName) )
         return false;
 
-    wxStrlcpy(buf, hostName.wx_str(), maxSize);
+    wxStrlcpy(buf, hostName.t_str(), maxSize);
 #else // !__WXWINCE__
     DWORD nSize = maxSize;
     if ( !::GetComputerName(buf, &nSize) )
@@ -1115,8 +1115,8 @@ wxLoadUserResource(const void **outData,
     wxCHECK_MSG( outData && outLen, false, "output pointers can't be NULL" );
 
     HRSRC hResource = ::FindResource(instance,
-                                     resourceName.wx_str(),
-                                     resourceType.wx_str());
+                                     resourceName.t_str(),
+                                     resourceType.t_str());
     if ( !hResource )
         return false;