diff options
author | George Hazan <ghazan@miranda.im> | 2020-10-14 17:35:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-10-14 17:35:31 +0300 |
commit | 4627d81b96900c508db360151b8eb84b6569a2cf (patch) | |
tree | 324b88a63671adfed2da142858e0ff7754847113 /libs/libssh2/src/agent.c | |
parent | 8b698e0dc0e6f2da349d0330a9f8f5ec3ab75ddf (diff) |
warning fixes
Diffstat (limited to 'libs/libssh2/src/agent.c')
-rw-r--r-- | libs/libssh2/src/agent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/libssh2/src/agent.c b/libs/libssh2/src/agent.c index 0c8d881665..03e7415a84 100644 --- a/libs/libssh2/src/agent.c +++ b/libs/libssh2/src/agent.c @@ -274,7 +274,7 @@ static int agent_connect_pageant(LIBSSH2_AGENT *agent) { HWND hwnd; - hwnd = FindWindow("Pageant", "Pageant"); + hwnd = FindWindowA("Pageant", "Pageant"); if(!hwnd) return _libssh2_error(agent->session, LIBSSH2_ERROR_AGENT_PROTOCOL, "failed connecting agent"); @@ -297,14 +297,14 @@ agent_transact_pageant(LIBSSH2_AGENT *agent, agent_transaction_ctx_t transctx) return _libssh2_error(agent->session, LIBSSH2_ERROR_INVAL, "illegal input"); - hwnd = FindWindow("Pageant", "Pageant"); + hwnd = FindWindowA("Pageant", "Pageant"); if(!hwnd) return _libssh2_error(agent->session, LIBSSH2_ERROR_AGENT_PROTOCOL, "found no pageant"); snprintf(mapname, sizeof(mapname), "PageantRequest%08x%c", (unsigned)GetCurrentThreadId(), '\0'); - filemap = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, + filemap = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, PAGEANT_MAX_MSGLEN, mapname); if(filemap == NULL || filemap == INVALID_HANDLE_VALUE) |