<br><br><b><i>Vitaliy Margolen <wine-devel@kievinfo.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Joris Huizer wrote:<br>> - int len = WideCharToMultiByte(CP_ACP, 0, lpNameW, -1, lpName,<br>> + unsigned int len = WideCharToMultiByte(CP_ACP, 0, lpNameW, -1, lpName,<br>This isn't right. WideCharToMultiByte returns INT, which is signed.<br><br>> @@ -1995,11 +1995,11 @@ LookupAccountSidW(<br>> <br>> if (dm) {<br>> BOOL status = TRUE;<br>> - if (*accountSize > lstrlenW(ac)) {<br>> + if (*accountSize > (unsigned)lstrlenW(ac)) {<br>> if (account)<br>> lstrcpyW(account, ac);<br>> }<br>> - if (*domainSize > lstrlenW(dm)) {<br>> + if (*domainSize > (unsigned)lstrlenW(dm)) {<br>> if (domain)<br>> lstrcpyW(domain, dm);<br>>
}<br>This isn't correct either. lstrlenW() also returns INT and you<br>can't just cast it to (unsigned). Unsigned what? int/long/dword?<br><br>Vitaliy.<br><br><br></blockquote>Sorry I'll fix it; Will try and check in future<br><br>Joris<br><p> 
<hr size=1>Now that's room service! <a href="http://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--
">Choose from over 150,000 hotels <br>in 45,000 destinations on Yahoo! Travel</a> to find your fit.