mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
Merge pull request #2060 from craftwar/format
Fix Variable type and format specifier
This commit is contained in:
@@ -35,7 +35,7 @@ void HashToString(const uint8_t *in, wchar_t *out)
|
||||
|
||||
void StringToHash(const wchar_t *in, BYTE *out)
|
||||
{
|
||||
int temp;
|
||||
unsigned int temp;
|
||||
|
||||
for (int i = 0; i < BLAKE2_HASH_LENGTH; i++) {
|
||||
swscanf_s(in + i * 2, L"%02x", &temp);
|
||||
|
||||
@@ -493,7 +493,7 @@ static inline void unlock_shmem_tex(int id)
|
||||
static inline bool init_shared_info(size_t size)
|
||||
{
|
||||
wchar_t name[64];
|
||||
_snwprintf(name, 64, L"%s%ld", SHMEM_TEXTURE, ++shmem_id_counter);
|
||||
_snwprintf(name, 64, L"%s%u", SHMEM_TEXTURE, ++shmem_id_counter);
|
||||
|
||||
shmem_file_handle = CreateFileMappingW(INVALID_HANDLE_VALUE, NULL,
|
||||
PAGE_READWRITE, 0, (DWORD)size,
|
||||
|
||||
Reference in New Issue
Block a user