Author: gadamopoulos
Date: Fri Jan 6 22:06:53 2017
New Revision: 73509
URL:
http://svn.reactos.org/svn/reactos?rev=73509&view=rev
Log:
[KERNEL32_APITEST] - Use the full path to the manifest files when testing
FindActCtxSectionStringW. This is needed because in most cases they are not in the current
directory.
Modified:
trunk/rostests/apitests/kernel32/FindActCtxSectionStringW.c
Modified: trunk/rostests/apitests/kernel32/FindActCtxSectionStringW.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/FindAct…
==============================================================================
--- trunk/rostests/apitests/kernel32/FindActCtxSectionStringW.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/kernel32/FindActCtxSectionStringW.c [iso-8859-1] Fri Jan 6
22:06:53 2017
@@ -79,8 +79,16 @@
HANDLE _CreateActCtxFromFile(LPCWSTR FileName, int line)
{
- ACTCTXW ActCtx = {sizeof(ACTCTX), 0, FileName};
+ ACTCTXW ActCtx = {sizeof(ACTCTX)};
HANDLE h;
+ WCHAR buffer[MAX_PATH] , *separator;
+
+ ok (GetModuleFileNameW(NULL, buffer, MAX_PATH), "GetModuleFileName
failed\n");
+ separator = wcsrchr(buffer, L'\\');
+ if (separator)
+ wcscpy(separator + 1, FileName);
+
+ ActCtx.lpSource = buffer;
SetLastError(0xdeaddead);
h = CreateActCtxW(&ActCtx);