Fixes issue 1777.

plus a fix for wiimote detection on win32 when using the default MS stack

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4989 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
luisr142004 2010-02-01 18:22:58 +00:00
parent 5da315337e
commit c28ef357f5
2 changed files with 3 additions and 3 deletions

View File

@ -68,10 +68,10 @@ inline char *StripTailDirSlashes(char *fname)
// Returns true if file filename exists
bool Exists(const char *filename)
{
struct stat file_info;
struct stat64 file_info;
char *copy = StripTailDirSlashes(__strdup(filename));
int result = stat(copy, &file_info);
int result = stat64(copy, &file_info);
free(copy);
return (result == 0);

View File

@ -621,7 +621,7 @@ int WiimotePairUp(void)
srch.fReturnRemembered = TRUE;
srch.fReturnConnected = TRUE; // does not filter properly somehow, so we 've to do an additional check on fConnected BT Devices
srch.fReturnUnknown = TRUE;
srch.fIssueInquiry = FALSE;
srch.fIssueInquiry = TRUE;
srch.cTimeoutMultiplier = 1;
srch.hRadio = hRadios[radio];