mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:31:40 +00:00
[REACTOS] Fix a number of MSVC warnings
This commit is contained in:
parent
b1c6c91d1f
commit
5d8e834897
43 changed files with 175 additions and 86 deletions
|
@ -109,7 +109,7 @@ LONG copy_servername_from_name(LPCWSTR name, LPWSTR target)
|
|||
|
||||
FIXME("found %s\n", debugstr_wn(server, serverlen));
|
||||
|
||||
if (serverlen > MAX_COMPUTERNAME_LENGTH) return -serverlen;
|
||||
if (serverlen > MAX_COMPUTERNAME_LENGTH) return -(LONG)serverlen;
|
||||
|
||||
if (target)
|
||||
{
|
||||
|
|
|
@ -111,7 +111,7 @@ ClassNameToVersion(
|
|||
ERR("Couldn't get atom name for atom %x !\n", LOWORD((DWORD_PTR)lpszClass));
|
||||
return NULL;
|
||||
}
|
||||
SectionName.Length = wcslen(SectionNameBuf) * sizeof(WCHAR);
|
||||
SectionName.Length = (USHORT)wcslen(SectionNameBuf) * sizeof(WCHAR);
|
||||
TRACE("ClassNameToVersion got name %wZ from atom\n", &SectionName);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue