diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-10 20:10:10 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-10 20:10:10 +0000 |
commit | d2bd43ec2bb53b0f5962b3fa2017ffa08e291056 (patch) | |
tree | 245724056bada627f098a4a78ef64e2e2804c452 /plugins/MirLua/Modules/WinAPI/src | |
parent | f87412da842a67246d574c8a4001baaef4b8d336 (diff) |
MirLua: fixed RegQueryValueEx in winapi
git-svn-id: http://svn.miranda-ng.org/main/trunk@16082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/Modules/WinAPI/src')
-rw-r--r-- | plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|