advapi32/tests: Do not assume the test is called with an absolute path.

This commit is contained in:
Thomas Faber 2011-11-15 23:37:17 +01:00 committed by Alexandre Julliard
parent 087ff0644f
commit c432514b39

View file

@ -33,7 +33,7 @@
#include "wine/test.h"
static const CHAR spooler[] = "Spooler"; /* Should be available on all platforms */
static const CHAR* selfname;
static CHAR selfname[MAX_PATH];
static BOOL (WINAPI *pChangeServiceConfig2A)(SC_HANDLE,DWORD,LPVOID);
static BOOL (WINAPI *pEnumServicesStatusExA)(SC_HANDLE, SC_ENUM_TYPE, DWORD,
@ -2315,7 +2315,7 @@ START_TEST(service)
char** myARGV;
myARGC = winetest_get_mainargs(&myARGV);
selfname = myARGV[0];
GetFullPathNameA(myARGV[0], sizeof(selfname), selfname, NULL);
if (myARGC >= 3)
{
if (strcmp(myARGV[2], "sleep") == 0)