From d2bd43ec2bb53b0f5962b3fa2017ffa08e291056 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 10 Jan 2016 20:10:10 +0000 Subject: MirLua: fixed RegQueryValueEx in winapi git-svn-id: http://svn.miranda-ng.org/main/trunk@16082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirLua/Modules') diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index 82d5a9d5f3..991843de5a 100644 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -1155,7 +1155,7 @@ static int global_RegQueryValueEx(lua_State *L) else { rv = RegQueryValueExA(hsk, valuename, NULL, &type, (LPBYTE)szdata, &len); if (rv == ERROR_SUCCESS) - lua_pushlstring(L, szdata, len); + lua_pushlstring(L, szdata, mir_strlen(szdata)); else lua_pushnil(L); mir_free(szdata); -- cgit v1.2.3