mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
advapi32/tests: Do not assume the test is called with an absolute path.
This commit is contained in:
parent
087ff0644f
commit
c432514b39
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
static const CHAR spooler[] = "Spooler"; /* Should be available on all platforms */
|
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 *pChangeServiceConfig2A)(SC_HANDLE,DWORD,LPVOID);
|
||||||
static BOOL (WINAPI *pEnumServicesStatusExA)(SC_HANDLE, SC_ENUM_TYPE, DWORD,
|
static BOOL (WINAPI *pEnumServicesStatusExA)(SC_HANDLE, SC_ENUM_TYPE, DWORD,
|
||||||
|
@ -2315,7 +2315,7 @@ START_TEST(service)
|
||||||
char** myARGV;
|
char** myARGV;
|
||||||
|
|
||||||
myARGC = winetest_get_mainargs(&myARGV);
|
myARGC = winetest_get_mainargs(&myARGV);
|
||||||
selfname = myARGV[0];
|
GetFullPathNameA(myARGV[0], sizeof(selfname), selfname, NULL);
|
||||||
if (myARGC >= 3)
|
if (myARGC >= 3)
|
||||||
{
|
{
|
||||||
if (strcmp(myARGV[2], "sleep") == 0)
|
if (strcmp(myARGV[2], "sleep") == 0)
|
||||||
|
|
Loading…
Reference in a new issue