[MOUNTMGR][NDIS]

Fix some string length calculations.

[CRT]
Declare variables extern.

[DMUSIC]
Fix a bug, already fixed in Wine.

svn path=/trunk/; revision=57248
This commit is contained in:
Dmitry Gorbachev 2012-09-06 21:11:44 +00:00
parent 267f517b43
commit 082e2570bc
4 changed files with 8 additions and 8 deletions

View file

@ -209,8 +209,8 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicObject_SetDescripto
if (pDesc->dwValidData & DMUS_OBJ_DATE)
This->pDesc->ftDate = pDesc->ftDate;
if (pDesc->dwValidData & DMUS_OBJ_MEMORY) {
memcpy (&This->pDesc->llMemLength, &pDesc->llMemLength, sizeof (pDesc->llMemLength));
memcpy (This->pDesc->pbMemData, pDesc->pbMemData, sizeof (pDesc->pbMemData));
This->pDesc->llMemLength = pDesc->llMemLength;
memcpy (This->pDesc->pbMemData, pDesc->pbMemData, pDesc->llMemLength);
}
if (pDesc->dwValidData & DMUS_OBJ_STREAM) {
/* according to MSDN, we copy the stream */

View file

@ -38,7 +38,7 @@ PDEVICE_OBJECT gdeviceObject;
KEVENT UnloadEvent;
LONG Unloading;
PWSTR Cunc = L"\\??\\C:";
static const WCHAR Cunc[] = L"\\??\\C:";
/*
* TODO:

View file

@ -139,7 +139,7 @@ NDIS_POBJECT_TO_HANDLE ( PNDIS_HANDLE_OBJECT obj )
return (NDIS_HANDLE)obj;
}
const WCHAR* NDIS_FILE_FOLDER = L"\\SystemRoot\\System32\\Drivers\\";
static const WCHAR NDIS_FILE_FOLDER[] = L"\\SystemRoot\\System32\\Drivers\\";
/*
* @implemented
@ -242,8 +242,8 @@ NdisOpenFile(
*Status = NDIS_STATUS_SUCCESS;
FullFileName.Buffer = NULL;
FullFileName.Length = sizeof(NDIS_FILE_FOLDER);
FullFileName.MaximumLength = FileName->MaximumLength + sizeof(NDIS_FILE_FOLDER);
FullFileName.Length = sizeof(NDIS_FILE_FOLDER) - sizeof(UNICODE_NULL);
FullFileName.MaximumLength = FileName->MaximumLength + FullFileName.Length;
FullFileName.Buffer = ExAllocatePool ( NonPagedPool, FullFileName.MaximumLength );
if ( !FullFileName.Buffer )

View file

@ -74,8 +74,8 @@ typedef struct {
LANGID found_lang_id;
} locale_search_t;
unsigned int __setlc_active;
unsigned int __unguarded_readlc_active;
extern unsigned int __setlc_active;
extern unsigned int __unguarded_readlc_active;
int _current_category; /* used by setlocale */
const char *_current_locale;