mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +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");
|
UNICODE_STRING DatabaseDescriptionKey = RTL_CONSTANT_STRING(L"DatabaseDescription");
|
||||||
|
|
||||||
Status = NtSetValueKey(DbKey, &DatabasePathKey, 0, REG_SZ,
|
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))
|
if (!NT_SUCCESS(Status))
|
||||||
SHIM_ERR("Unable to write %wZ\n", &DatabasePathKey);
|
SHIM_ERR("Unable to write %wZ\n", &DatabasePathKey);
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ BOOL WINAPI SdbRegisterDatabaseEx(
|
||||||
if (NT_SUCCESS(Status) && Information.Description)
|
if (NT_SUCCESS(Status) && Information.Description)
|
||||||
{
|
{
|
||||||
Status = NtSetValueKey(DbKey, &DatabaseDescriptionKey, 0, REG_SZ,
|
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))
|
if (!NT_SUCCESS(Status))
|
||||||
SHIM_ERR("Unable to write %wZ\n", &DatabaseDescriptionKey);
|
SHIM_ERR("Unable to write %wZ\n", &DatabaseDescriptionKey);
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,7 @@ void WINAPI SdbpFlush(PDB pdb)
|
||||||
|
|
||||||
DWORD SdbpStrlen(PCWSTR string)
|
DWORD SdbpStrlen(PCWSTR string)
|
||||||
{
|
{
|
||||||
return wcslen(string);
|
return (DWORD)wcslen(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD SdbpStrsize(PCWSTR string)
|
DWORD SdbpStrsize(PCWSTR string)
|
||||||
|
|
|
@ -111,12 +111,12 @@ PDB WINAPI SdbCreateDatabase(LPCWSTR path, PATH_TYPE type)
|
||||||
if (!pdb)
|
if (!pdb)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pdb->size = sizeof(DWORD) + sizeof(DWORD) + strlen(magic);
|
pdb->size = sizeof(DWORD) + sizeof(DWORD) + (DWORD)strlen(magic);
|
||||||
pdb->data = SdbAlloc(pdb->size);
|
pdb->data = SdbAlloc(pdb->size);
|
||||||
|
|
||||||
SdbpWrite(pdb, &version_major, sizeof(DWORD));
|
SdbpWrite(pdb, &version_major, sizeof(DWORD));
|
||||||
SdbpWrite(pdb, &version_minor, sizeof(DWORD));
|
SdbpWrite(pdb, &version_minor, sizeof(DWORD));
|
||||||
SdbpWrite(pdb, magic, strlen(magic));
|
SdbpWrite(pdb, magic, (DWORD)strlen(magic));
|
||||||
|
|
||||||
return pdb;
|
return pdb;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue