Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c824e8bc
Commit
c824e8bc
authored
Jan 23, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack/tests: Fixed failure when "ProgramFilesDir" is != "C:\Program Files".
parent
2ba20dd7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
Makefile.in
dlls/advpack/tests/Makefile.in
+1
-1
advpack.c
dlls/advpack/tests/advpack.c
+15
-3
No files found.
dlls/advpack/tests/Makefile.in
View file @
c824e8bc
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
advpack.dll
TESTDLL
=
advpack.dll
IMPORTS
=
cabinet user32 kernel32
IMPORTS
=
cabinet user32
advapi32
kernel32
CTESTS
=
\
CTESTS
=
\
advpack.c
\
advpack.c
\
...
...
dlls/advpack/tests/advpack.c
View file @
c824e8bc
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include <assert.h>
#include <assert.h>
#include "wine/test.h"
#include "wine/test.h"
#define TEST_STRING1 "
C:\\Program Files
\\Application Name"
#define TEST_STRING1 "\\Application Name"
#define TEST_STRING2 "%49001%\\Application Name"
#define TEST_STRING2 "%49001%\\Application Name"
static
HRESULT
(
WINAPI
*
pGetVersionFromFile
)(
LPSTR
,
LPDWORD
,
LPDWORD
,
BOOL
);
static
HRESULT
(
WINAPI
*
pGetVersionFromFile
)(
LPSTR
,
LPDWORD
,
LPDWORD
,
BOOL
);
...
@@ -224,8 +224,20 @@ static void translateinfstring_test()
...
@@ -224,8 +224,20 @@ static void translateinfstring_test()
if
(
hr
==
ERROR_SUCCESS
)
if
(
hr
==
ERROR_SUCCESS
)
todo_wine
todo_wine
{
{
ok
(
!
strcmp
(
buffer
,
TEST_STRING1
),
"Expected %s, got %s
\n
"
,
TEST_STRING1
,
buffer
);
HKEY
key
;
ok
(
dwSize
==
34
,
"Expected size 34, got %ld
\n
"
,
dwSize
);
DWORD
len
=
MAX_PATH
;
char
cmpbuffer
[
MAX_PATH
];
LONG
res
=
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows
\\
CurrentVersion"
,
&
key
);
if
(
res
==
ERROR_SUCCESS
)
{
res
=
RegQueryValueExA
(
key
,
"ProgramFilesDir"
,
NULL
,
NULL
,
(
LPBYTE
)
cmpbuffer
,
&
len
);
if
(
res
==
ERROR_SUCCESS
)
{
strcat
(
cmpbuffer
,
TEST_STRING1
);
ok
(
!
strcmp
(
buffer
,
cmpbuffer
),
"Expected '%s', got '%s'
\n
"
,
cmpbuffer
,
buffer
);
ok
(
dwSize
==
(
strlen
(
cmpbuffer
)
+
1
),
"Expected size %d, got %ld
\n
"
,
strlen
(
cmpbuffer
)
+
1
,
dwSize
);
}
RegCloseKey
(
key
);
}
}
}
buffer
[
0
]
=
0
;
buffer
[
0
]
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment