diff options
author | Pete Batard <pete@akeo.ie> | 2016-03-02 06:45:12 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2016-03-09 06:33:58 -0500 |
commit | b22a1fdc5458cffc08a387eccd5d30e7ed74a9bb (patch) | |
tree | df7d33b036ed52b3123ceacd15152fec46b97310 /win/ntfssect.h | |
parent | 1ac927d131d088e07320942d29f65208c34f08c8 (diff) | |
download | syslinux-b22a1fdc5458cffc08a387eccd5d30e7ed74a9bb.tar.gz |
win/ntfs: remove unused variable and have ntfssect use char API calls
The variable 'ok' is never used and generates a warning. Remove it.
Also ntfssect.c is designed to be compiled in non Unicode mode when
using MSVC compilers, so remove all ambiguity about it
(LPCTSTR -> LPCSTR, use of 'A' API calls) so that it doesn't break when
compiled in Unicode mode, which is what Rufus uses with MSVC.
Signed-off-by: Pete Batard <pete@akeo.ie>
Diffstat (limited to 'win/ntfssect.h')
-rw-r--r-- | win/ntfssect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/ntfssect.h b/win/ntfssect.h index 246c26da..f260af02 100644 --- a/win/ntfssect.h +++ b/win/ntfssect.h @@ -39,7 +39,7 @@ typedef struct S_NTFSSECT_XPFUNCS_ S_NTFSSECT_XPFUNCS; /* The function type for Kernel32.dll's GetDiskFreeSpace() */ typedef BOOL WINAPI F_KERNEL32_GETDISKFREESPACE( - LPCTSTR, + LPCSTR, LPDWORD, LPDWORD, LPDWORD, @@ -47,7 +47,7 @@ typedef BOOL WINAPI F_KERNEL32_GETDISKFREESPACE( ); /* The function type for Kernel32.dll's GetVolumePathName() */ -typedef BOOL WINAPI F_KERNEL32_GETVOLUMEPATHNAME(LPCTSTR, LPCTSTR, DWORD); +typedef BOOL WINAPI F_KERNEL32_GETVOLUMEPATHNAME(LPCSTR, LPCSTR, DWORD); /*** Function declarations */ |