/*
* Copyright 2011 André Hentschel
* Copyright 2013 Mislav Blažević
- * Copyright 2015,2016 Mark Jansen
+ * Copyright 2015-2017 Mark Jansen (mark.jansen@reactos.org)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
PDB buf = db->string_buffer;
if (db->string_buffer == NULL)
{
- db->string_buffer = buf = SdbpAlloc(sizeof(DB));
+ db->string_buffer = buf = SdbAlloc(sizeof(DB));
if (buf == NULL)
return FALSE;
buf->size = 128;
*
* If a file already exists on specified path, that file shall be overwritten.
*
- * @note Use SdbCloseDatabasWrite to close the database opened with this function.
+ * @note Use SdbCloseDatabaseWrite to close the database opened with this function.
*
* @param [in] path Path to the new shim database.
* @param [in] type Type of path. Either DOS_PATH or NT_PATH.
*
* @return TRUE if it succeeds, FALSE if it fails.
*/
-BOOL WINAPI SdbWriteBinaryTag(PDB db, TAG tag, BYTE* data, DWORD size)
+BOOL WINAPI SdbWriteBinaryTag(PDB db, TAG tag, const BYTE* data, DWORD size)
{
if (!SdbpCheckTagType(tag, TAG_TYPE_BINARY))
return FALSE;