Commit acecec4a authored by Alexandre Julliard's avatar Alexandre Julliard

winmm: Command resources should not depend on pointer size.

parent 53e207fd
...@@ -22,11 +22,7 @@ ...@@ -22,11 +22,7 @@
#include "mmddk.h" #include "mmddk.h"
#include "digitalv.h" #include "digitalv.h"
#ifdef MCI_INTEGER64 #define MCI_DWORD_PTR 13 /* MCI_INTEGER64 */
#define MCI_DWORD_PTR MCI_INTEGER64
#else
#define MCI_DWORD_PTR MCI_INTEGER
#endif
MCIAVI RCDATA MCIAVI RCDATA
BEGIN BEGIN
......
...@@ -22,11 +22,7 @@ ...@@ -22,11 +22,7 @@
#include "mmddk.h" #include "mmddk.h"
#include "digitalv.h" #include "digitalv.h"
#ifdef MCI_INTEGER64 #define MCI_DWORD_PTR 13 /* MCI_INTEGER64 */
#define MCI_DWORD_PTR MCI_INTEGER64
#else
#define MCI_DWORD_PTR MCI_INTEGER
#endif
MCIAVI RCDATA MCIAVI RCDATA
BEGIN BEGIN
......
...@@ -1228,8 +1228,7 @@ static DWORD MCI_HandleReturnValues(DWORD dwRet, LPWINE_MCIDRIVER wmd, DWORD ret ...@@ -1228,8 +1228,7 @@ static DWORD MCI_HandleReturnValues(DWORD dwRet, LPWINE_MCIDRIVER wmd, DWORD ret
} }
break; break;
} }
#ifdef MCI_INTEGER64 case 13: /* MCI_INTEGER64 */
case MCI_INTEGER64:
{ {
DWORD_PTR data = *(DWORD_PTR *)(params + 1); DWORD_PTR data = *(DWORD_PTR *)(params + 1);
switch (dwRet & 0xFFFF0000ul) { switch (dwRet & 0xFFFF0000ul) {
...@@ -1263,7 +1262,6 @@ static DWORD MCI_HandleReturnValues(DWORD dwRet, LPWINE_MCIDRIVER wmd, DWORD ret ...@@ -1263,7 +1262,6 @@ static DWORD MCI_HandleReturnValues(DWORD dwRet, LPWINE_MCIDRIVER wmd, DWORD ret
} }
break; break;
} }
#endif
case MCI_STRING: case MCI_STRING:
switch (dwRet & 0xFFFF0000ul) { switch (dwRet & 0xFFFF0000ul) {
case 0: case 0:
...@@ -1484,11 +1482,9 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet, ...@@ -1484,11 +1482,9 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
case MCI_RECT: case MCI_RECT:
offset += 4 * sizeof(DWORD); offset += 4 * sizeof(DWORD);
break; break;
#ifdef MCI_INTEGER64 case 13: /* MCI_INTEGER64 */
case MCI_INTEGER64:
offset += sizeof(DWORD_PTR); offset += sizeof(DWORD_PTR);
break; break;
#endif
default: default:
FIXME("Unknown MCI return type %d\n", retType); FIXME("Unknown MCI return type %d\n", retType);
dwRet = MCIERR_PARSER_INTERNAL; dwRet = MCIERR_PARSER_INTERNAL;
......
...@@ -25,11 +25,7 @@ ...@@ -25,11 +25,7 @@
#include "windef.h" #include "windef.h"
#include "mmddk.h" #include "mmddk.h"
#ifdef MCI_INTEGER64 #define MCI_DWORD_PTR 13 /* MCI_INTEGER64 */
#define MCI_DWORD_PTR MCI_INTEGER64
#else
#define MCI_DWORD_PTR MCI_INTEGER
#endif
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment