mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[APPHELP] Fix warnings
This commit is contained in:
parent
aff8581f6d
commit
91ba017dfc
3 changed files with 5 additions and 5 deletions
|
@ -314,7 +314,7 @@ BOOL WINAPI SdbRegisterDatabaseEx(
|
|||
UNICODE_STRING DatabaseDescriptionKey = RTL_CONSTANT_STRING(L"DatabaseDescription");
|
||||
|
||||
Status = NtSetValueKey(DbKey, &DatabasePathKey, 0, REG_SZ,
|
||||
(PVOID)pszDatabasePath, (wcslen(pszDatabasePath) + 1) * sizeof(WCHAR));
|
||||
(PVOID)pszDatabasePath, ((ULONG)wcslen(pszDatabasePath) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
SHIM_ERR("Unable to write %wZ\n", &DatabasePathKey);
|
||||
|
||||
|
@ -349,7 +349,7 @@ BOOL WINAPI SdbRegisterDatabaseEx(
|
|||
if (NT_SUCCESS(Status) && Information.Description)
|
||||
{
|
||||
Status = NtSetValueKey(DbKey, &DatabaseDescriptionKey, 0, REG_SZ,
|
||||
(PVOID)Information.Description, (wcslen(Information.Description) + 1) * sizeof(WCHAR));
|
||||
(PVOID)Information.Description, ((ULONG)wcslen(Information.Description) + 1) * sizeof(WCHAR));
|
||||
if (!NT_SUCCESS(Status))
|
||||
SHIM_ERR("Unable to write %wZ\n", &DatabaseDescriptionKey);
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ void WINAPI SdbpFlush(PDB pdb)
|
|||
|
||||
DWORD SdbpStrlen(PCWSTR string)
|
||||
{
|
||||
return wcslen(string);
|
||||
return (DWORD)wcslen(string);
|
||||
}
|
||||
|
||||
DWORD SdbpStrsize(PCWSTR string)
|
||||
|
|
|
@ -111,12 +111,12 @@ PDB WINAPI SdbCreateDatabase(LPCWSTR path, PATH_TYPE type)
|
|||
if (!pdb)
|
||||
return NULL;
|
||||
|
||||
pdb->size = sizeof(DWORD) + sizeof(DWORD) + strlen(magic);
|
||||
pdb->size = sizeof(DWORD) + sizeof(DWORD) + (DWORD)strlen(magic);
|
||||
pdb->data = SdbAlloc(pdb->size);
|
||||
|
||||
SdbpWrite(pdb, &version_major, sizeof(DWORD));
|
||||
SdbpWrite(pdb, &version_minor, sizeof(DWORD));
|
||||
SdbpWrite(pdb, magic, strlen(magic));
|
||||
SdbpWrite(pdb, magic, (DWORD)strlen(magic));
|
||||
|
||||
return pdb;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue