From a0cbd0a09c2e2e2771809b1b5440fee854e7a26b Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 11 Apr 2007 21:00:23 +0000 Subject: [PATCH] cast warning git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5053 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Library/RegTool/RegTool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contrib/Library/RegTool/RegTool.c b/Contrib/Library/RegTool/RegTool.c index 24db286a..81e9ede3 100644 --- a/Contrib/Library/RegTool/RegTool.c +++ b/Contrib/Library/RegTool/RegTool.c @@ -53,12 +53,12 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine { wsprintf(valname, "%u.mode", j); l = sizeof(mode); - if (FAILED(RegQueryValueEx(key, valname, NULL, &t, mode, &l)) || t != REG_SZ) + if (FAILED(RegQueryValueEx(key, valname, NULL, &t, (LPBYTE) mode, &l)) || t != REG_SZ) continue; wsprintf(valname, "%u.file", j); l = STR_SIZE; - if (FAILED(RegQueryValueEx(key, valname, NULL, &t, file, &l)) || t != REG_SZ) + if (FAILED(RegQueryValueEx(key, valname, NULL, &t, (LPBYTE) file, &l)) || t != REG_SZ) continue; RunSelf(mode[0], file);