Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5a932ccd
Commit
5a932ccd
authored
Oct 26, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement SQLInstallDriverManager.
parent
927ba076
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
5 deletions
+32
-5
odbccp32.c
dlls/odbccp32/odbccp32.c
+32
-5
No files found.
dlls/odbccp32/odbccp32.c
View file @
5a932ccd
...
...
@@ -258,17 +258,44 @@ BOOL WINAPI SQLInstallDriverEx(LPCSTR lpszDriver, LPCSTR lpszPathIn,
BOOL
WINAPI
SQLInstallDriverManagerW
(
LPWSTR
lpszPath
,
WORD
cbPathMax
,
WORD
*
pcbPathOut
)
{
FIXME
(
"
\n
"
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
UINT
len
;
WCHAR
path
[
MAX_PATH
];
TRACE
(
"(%p %d %d)
\n
"
,
lpszPath
,
cbPathMax
,
*
pcbPathOut
);
len
=
GetSystemDirectoryW
(
path
,
MAX_PATH
);
if
(
pcbPathOut
)
*
pcbPathOut
=
len
;
if
(
cbPathMax
>
len
)
{
lstrcpyW
(
lpszPath
,
path
);
return
TRUE
;
}
return
FALSE
;
}
BOOL
WINAPI
SQLInstallDriverManager
(
LPSTR
lpszPath
,
WORD
cbPathMax
,
WORD
*
pcbPathOut
)
{
FIXME
(
"
\n
"
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
BOOL
ret
;
WORD
len
,
cbOut
=
0
;
WCHAR
path
[
MAX_PATH
];
TRACE
(
"(%p %d %d)
\n
"
,
lpszPath
,
cbPathMax
,
*
pcbPathOut
);
ret
=
SQLInstallDriverManagerW
(
path
,
MAX_PATH
,
&
cbOut
);
if
(
ret
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
lpszPath
,
0
,
NULL
,
NULL
);
if
(
len
)
{
if
(
pcbPathOut
)
*
pcbPathOut
=
len
-
1
;
if
(
cbPathMax
<
len
)
return
FALSE
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
path
,
-
1
,
lpszPath
,
cbPathMax
,
NULL
,
NULL
);
}
}
return
ret
;
}
BOOL
WINAPI
SQLInstallODBCW
(
HWND
hwndParent
,
LPCWSTR
lpszInfFile
,
...
...
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