Detlef Riekenberg : kernel32/tests: Avoid crash on Win95
(GetLongPathNameW) .
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 20 05:52:24 CST 2006
Module: wine
Branch: master
Commit: c8a12d0f62709cdb902d47cb1b6ed27db27366b3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c8a12d0f62709cdb902d47cb1b6ed27db27366b3
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Sun Nov 19 16:31:51 2006 +0100
kernel32/tests: Avoid crash on Win95 (GetLongPathNameW).
---
dlls/kernel32/tests/path.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/path.c b/dlls/kernel32/tests/path.c
index 4f4c0d7..b4165e6 100644
--- a/dlls/kernel32/tests/path.c
+++ b/dlls/kernel32/tests/path.c
@@ -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());
More information about the wine-cvs
mailing list