diff --git a/reactos/dll/win32/advpack/advpack.rbuild b/reactos/dll/win32/advpack/advpack.rbuild
index 89117d664c7..de904cbb218 100644
--- a/reactos/dll/win32/advpack/advpack.rbuild
+++ b/reactos/dll/win32/advpack/advpack.rbuild
@@ -8,6 +8,11 @@
0x600
0x600
+ advpack.c
+ files.c
+ install.c
+ reg.c
+ advpack.spec
wine
ole32
setupapi
@@ -15,10 +20,5 @@
advapi32
kernel32
ntdll
- advpack.c
- files.c
- install.c
- reg.c
- advpack.spec
diff --git a/reactos/dll/win32/advpack/files.c b/reactos/dll/win32/advpack/files.c
index 7dc816f46bc..5003239ed2d 100644
--- a/reactos/dll/win32/advpack/files.c
+++ b/reactos/dll/win32/advpack/files.c
@@ -514,7 +514,7 @@ HRESULT WINAPI DelNodeRunDLL32W(HWND hWnd, HINSTANCE hInst, LPWSTR cmdline, INT
return res;
}
-/* The following defintions were copied from dlls/cabinet/cabinet.h */
+/* The following definitions were copied from dlls/cabinet/cabinet.h */
/* SESSION Operation */
#define EXTRACT_FILLFILELIST 0x00000001
@@ -564,9 +564,7 @@ static LPSTR convert_file_list(LPCSTR FileList, DWORD *dwNumFiles)
dwLen = last - first + 3; /* room for double-null termination */
szConvertedList = HeapAlloc(GetProcessHeap(), 0, dwLen);
lstrcpynA(szConvertedList, first, dwLen - 1);
-
szConvertedList[dwLen - 1] = '\0';
- szConvertedList[dwLen] = '\0';
/* empty list */
if (!lstrlenA(szConvertedList))
diff --git a/reactos/dll/win32/advpack/reg.c b/reactos/dll/win32/advpack/reg.c
index 2b1418ad5d4..bcb6cb9d596 100644
--- a/reactos/dll/win32/advpack/reg.c
+++ b/reactos/dll/win32/advpack/reg.c
@@ -210,7 +210,7 @@ static HRESULT write_predefined_strings(HMODULE hm, LPCWSTR ini_path)
* substitution table, and executes the INF.
*
* PARAMS
- * hm [I] Module that contains the REGINST resouce.
+ * hm [I] Module that contains the REGINST resource.
* pszSection [I] The INF section to execute.
* pstTable [I] Table of string substitutions.
*