diff options
author | unknown <georg@lmy002.wdf.sap.corp> | 2006-08-02 10:00:28 +0200 |
---|---|---|
committer | unknown <georg@lmy002.wdf.sap.corp> | 2006-08-02 10:00:28 +0200 |
commit | a29f10e8ee99f96795a6f805a026c61feba77709 (patch) | |
tree | c76a22cf008036192767c19621e1588655150813 /mysys | |
parent | 53cc83fef234277af1b3d2362d070f737c854390 (diff) | |
download | mariadb-git-a29f10e8ee99f96795a6f805a026c61feba77709.tar.gz |
Bug #21396: Wrong error number generated for a missing table
BitKeeper/etc/collapsed:
BitKeeper file /home/georg/work/mysql/prod/mysql-5.0/BitKeeper/etc/collapsed
mysys/my_open.c:
Win64 bit fix: Replacing 32-bit value (0xFFFFFFFF) by a generic error constant.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_open.c b/mysys/my_open.c index 6ed3cb5becf..a0168b23b16 100644 --- a/mysys/my_open.c +++ b/mysys/my_open.c @@ -335,7 +335,7 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode) * try to open/create the file */ if ((osfh= CreateFile(path, fileaccess, fileshare, &SecurityAttributes, - filecreate, fileattrib, NULL)) == (HANDLE)0xffffffff) + filecreate, fileattrib, NULL)) == INVALID_HANDLE_VALUE) { /* * OS call to open/create file failed! map the error, release @@ -346,7 +346,7 @@ File my_sopen(const char *path, int oflag, int shflag, int pmode) return -1; /* return error to caller */ } - fh= _open_osfhandle((long)osfh, oflag & (_O_APPEND | _O_RDONLY | _O_TEXT)); + fh= _open_osfhandle((intptr_t)osfh, oflag & (_O_APPEND | _O_RDONLY | _O_TEXT)); return fh; /* return handle */ } |