Commit c8a12d0f authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

kernel32/tests: Avoid crash on Win95 (GetLongPathNameW).

parent e33a6d61
......@@ -935,10 +935,11 @@ static void test_GetLongPathNameW(void)
DWORD length;
WCHAR empty[MAX_PATH];
SetLastError(0xdeadbeef);
length = pGetLongPathNameW(NULL,NULL,0);
/* Not present in all windows versions */
if(pGetLongPathNameW)
{
SetLastError(0xdeadbeef);
length = pGetLongPathNameW(NULL,NULL,0);
ok(0==length,"GetLongPathNameW returned %d but expected 0\n",length);
ok(GetLastError()==ERROR_INVALID_PARAMETER,"GetLastError returned %x but expected ERROR_INVALID_PARAMETER\n",GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment